Skip to main content

Questions tagged [batch]

Batch processing is the execution of a set of commands or software programs without user intervention. A batch file is a text file containing a sequence of such commands or programs invocations. Please use the tag [batch-file] for that.

0 votes
0 answers
43 views

move copies instead of moves

for /f "tokens=*" %%i in (%file_list%) DO (move "%src_folder%\%%i" "%dst_folder%") This resulted in copy instead of move. I need to remove the files from the source ...
Robert J. Gonzalez's user avatar
2 votes
1 answer
22 views

Merge WAV files from different directories according to matching name

I'd like to merge a number of WAV files located in two separate directories. The files are named identically, similar to the following example: \DIRECTORY A C1-05.wav C2-05.wav C3-05.wav C4-05....
black-clover's user avatar
0 votes
0 answers
18 views

Batch File Automation [closed]

Need some help in writing a batch script which takes the output of the command "dig +short a 'DOMAIN NAME'" ( the list of domains is in a txt file) and puts the domain names and ...
Biswa's user avatar
  • 101
0 votes
0 answers
39 views

Schedule a task with admin privileges Windows 10

I feel like this should be easy but I am not making any further progress. I have seen the other post mentioning Windows 7 and UAC prompts but the accepted solution on that did not post work for me. ...
roar's user avatar
  • 1
0 votes
1 answer
49 views

Restart autosys job after a fixed delay

I have a scenario where I have to retry run the failed autosys command job after 10 minutes. I have to retry rerunning it only twice. I cannot use n_retry attribute here because I need to wait for 10 ...
Priya's user avatar
  • 1
1 vote
0 answers
80 views

Any way for batch conversion from JPG to DDS with DXT1 compression

I have an "file.jpg" image, I open it with GIMP, then go to "File", "Export As...", choose "DDS image". I choose the compression - BC1/DXT1, other options are ...
misha.physics's user avatar
3 votes
1 answer
131 views

Change Window Title When Start PowerShell with Sudo.exe

I tried starting powershell with Sudo for Windows from CMD or Batch. Works fine. A PowerShell window opens with administrator rights: rem CMD/BAT sudo.exe start powershell.exe Then, I tried adding a ...
Mr.Key7's user avatar
  • 823
0 votes
1 answer
65 views

How to change file path in BAT file based on the current user?

I have a bat file to run some Python code similar to this: @echo off set /P State= Select State: set /P Year= Select Year: "C:\Users\MYNUMBER\...
Jwem93's user avatar
  • 109
0 votes
0 answers
61 views

How to suspend Windows PC for a specified period of time using Powershell?

Using Powershell or batch scripts, how to make a PC with Windows OS automatically suspend during the weekdays and automatically reactivate for every weekend? I know that in Linux OS this can be ...
pangratt12345's user avatar
1 vote
3 answers
139 views

Is there a difference between combining commands with & and running them one at a time?

Say I want to run multiple, computationally complex commands on Windows command line. Does it makes a difference, performance wise, if I combine them with &: doSomething1 & doSomething2 & ...
overdriven's user avatar
0 votes
1 answer
73 views

Batch command with quotes fails to move files and delete folder with special characters

I have a custom batch program that I update and run to negate having to constantly waste half an hour just to clean up the Windows start menu every time I'm forced to reinstall Windows. It saves me a ...
John's user avatar
  • 2,147
2 votes
1 answer
93 views

A batch file with an executable file checks if it is not in the processes in order to run another batch file (or code from it)

There are two batch files. Need to add a condition to the first file if the process is running nvcplui.exe then nothing, and if it is not running, then the second file (or the code from it) will be ...
Agodless's user avatar
2 votes
1 answer
182 views

Reg.exe Query Only Works In Interactive Mode

In CMD Console (Interactive Mode), I run the command: reg query HKCU\Console\%%Startup The output: HKEY_CURRENT_USER\Console\%%Startup DelegationConsole REG_SZ {B23D10C0-E52E-411E-9D5B-...
Mr.Key7's user avatar
  • 823
9 votes
3 answers
1k views

Why does Windows command prompt command chaining not short circuit when a batch file returns non-zero?

The first premise is that batch scripts will execute all commands in them, even if one fails. @echo off does_not_exist.exe also_does_not_exist.exe C:\Users\user>two_failures.bat 'does_not_exist....
douggard's user avatar
  • 191
0 votes
0 answers
20 views

���psloglist” for system event returns an error: -1073740940

My batch must extract system and application events. I use two psloglist (vers. 2.82) cmd one after the other. psloglist \\Home -d 7 -f we sys > system.log psloglist \\Home -d 7 -f we app > ...
Luciano's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
267