Category "batch-file"

Combine PowerShell Defender outlets into a combined CSV file for monitoring

We cancelled our antivirus software (Kaspersky Anti-Virus, duh) and depend on the Windows Defender in the meantime. We won’t be getting any SIEM server to

How do you define the first day of the month (without including week-ends) in a batch script?

I have created a scheduled task in Windows that consists of running a batch script. The problem is that this task has to be scheduled every 1st day of the month

Running JAR from BAT file cannot find natives path

I am running my JAR from a BAT file on Windows 7 x64 machine. Lately I added native .dll files to project, so now I need to add the path to the BAT. My project

How to install application Updates on multiple windows machine using any tool or script [closed]

I have around 100 windows machine(VMs), All the machines have few updates for chrome , notepad/notepad++ , Firefox ,Jenkins which have not b

System cannot find path even though it exists in paths

Working on a batch file that calls another batch file. K:\Market Risk>call "K:\Market Risk\activate.bat" The system cannot find the path specified. So I s

File name pattern matching in Windows command line

I have several files like: a.txt a$.txt a$b.txt b.txt b$.txt b$c.txt I would like to print file whose name does not contain '$' using Windows command line fo

Execute Process Task in SSIS for Python Script

I'm trying to execute a python script by SSIS Execute Process Task. The Python script is correct. This script read data from yfinance and do some calculation,

Problems determining the 1st Sunday in a month

This following if segment is not working right. What I want to do is do something special if and only if it is the 1st Sunday of the month and something else e

CMD/BAT get date modified of all filenames and append to their filename

I am having trouble with this script. I'll explain below the codeblock. @Echo off pushd "\\server\folder" SETLOCAL EnableDelayedExpansion @FOR /F "TOKENS=2"

How to get .vbs output in the same window of a .bat file [duplicate]

I have a batch file that does a lot of different things and within that batch file, at some step, I'm running a VBS script. The problem is, th

The "startfile()" function is not working in Python 3.9.7 [duplicate]

I wanted to build a script playing an audio file in the background, so i found code on Stack Overflow to run an audio file without the window

Batch file %~dp0 don't work inside zip file

I had a batch file with a code: @echo off type "%~dp0\ascii.txt" PAUSE Basically, it opens the ascii.txt file and echo it in the batch file. It does work as it

How to get entire line that contains given string using findstr in batch script?

I need to get the line that contains the keyword ProductVersion from one of my svn repository csproj files. I have tried below code, but it is not working as ex

How to sort strings in a file numerically

In my batch script there will be a temporary file with the notes that are in a section (gotten from a json file but that doesn't matter) Format: (position of no

Check if file is locked inside a batch file for loop

I have a script that runs through some files and copies them to another location. But the script needs to wait until the file is no longer being written to. I t

Output AWS cli sync command from bat file to log file with timestamp

I would like to run aws s3 sync on a scheduled bat file, logging the output to a file with timestamps. Here is the bat file: cls set ARG1=%1 if %ARG1%==test co

Call multiple .bat from another .bat without waiting for one to finish

So, I want to make a script that will execute 2 .bat files and start some .exe files. However, the .bat files are supposed to keep running. I have something l

Call multiple .bat from another .bat without waiting for one to finish

So, I want to make a script that will execute 2 .bat files and start some .exe files. However, the .bat files are supposed to keep running. I have something l

Windows batch file command formatting with usebackq

I'm trying to assign the results of a git command to a variable in a Windows batch file. The line in question looks like: FOR /F "USEBACKQ tokens=*" %%i IN (`gi

No Module Named cx_Oracle

I created and execute a python script using PyCharm with Cx_Oracle module and it is working (able to select from an oracle table) but when I tried to use .bat f