Questions tagged [batch-file]
A batch file is a text file containing a series of commands that are executed by the command interpreter on MS-DOS, IBM OS/2, or Microsoft Windows systems.
3,150 questions
-1
votes
1
answer
53
views
Why is my FFMpeg Bat file to add Track Number to Title not Working
I have created a BAT file to append the MP3 Track Number ID3 tag to the beginning of the title ID3 tag. I want this so that when the song is played in my car, the title that displays also shows the ...
0
votes
2
answers
117
views
Reproduce a target from a windows-link in a batch-file
This is on Windows 10.
Intel has a windows-link. In the properties, the target is :
C:\Windows\System32\cmd.exe /E:ON /K ""C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 ...
1
vote
3
answers
274
views
Cmd prompt won't recognise certain commands from a batch file
...but recognizes 'em just fine when manually entered on the command line.
First time I've seen this in four decades. A new install of win10 Pro 22h2. The batch file in question has run just fine ...
7
votes
2
answers
481
views
Find jpg files without Keywords/Subject in Iptc/Xmp and copy them
I have 10s of thousands of JPG photos in multiple sub-folders under a single folder and quite a few of these picture files have no keywords in their metadata.
I want to find a way to scan through all ...
1
vote
1
answer
80
views
Setting Registry to automatically opening specific key/folder fails when set by batch program
My original goal was to have the Windows Registry Editor open up at a specific key. We tenuously accomplished that. However now there there is a new problem.
The Windows Registry remembers which key ...
3
votes
3
answers
138
views
How to delete folders within subfolder on Windows that fits a specific pattern?
I'm trying to make a simple batch file that can quickly cleanup my plugins folder for UE5 for a clean rebuild.
I have a lot of plugins and would like to not worry about adding them to my current batch ...
0
votes
0
answers
58
views
When creating a Batch File that executes a macro that deletes an Access table, how do I automatically reply Yes to the Delete Table warning message?
The macro is attempting to delete a table and then recreate the table using a MakeTable Access query (Access version Microsoft 365).
Here's the batch file:
start "" "C:\Program Files (...
0
votes
1
answer
155
views
WindowsTerminal not displaying windowsTitle of other terminals
I have just started with batch scripting, and I'm trying to close(kill) a running batch from another batch.
I have set a tile for my main script file, and trying to kill it from another batch file, ...
2
votes
1
answer
435
views
Open folders within same window in different tabs
I have this powershell script and it opens the folders in sepearate windows, in Win 11 I want them to open in different tabs
Start-Process explorer.exe "C:\Users\Users\Documents"
Start-...
0
votes
0
answers
38
views
How to set a countdown for questions in a batch file for a cleaning PC health check script? [duplicate]
Edit: Sorry, My question is not the same as in this post: "Show only countdown in timeout command: "https://superuser.com/questions/1727173/show-only-countdown-in-timeout-command"."...
23
votes
2
answers
3k
views
Running a BAT file and accidentally finding obscure Chinese poem
Accidentally found obscure Chinese poem (BAT file)
Something really weird just happened. I ran this in a batch file:
wmic timezone get caption>>tmp_ist.bak
time/date>>tmp_ist.bak
This ...
0
votes
0
answers
37
views
updating xcopy command to robocopy
I am trying to update the following xcopy command to robocopy. I substituted robocopy for xcopy, removed the "" and the switches except for /e. It fails. How do I fix it?
xcopy "c:\...
1
vote
2
answers
490
views
Windows Batch - Return ENTER key as "choice" command option
Is there any way I can input the enter key on the "choice" command and get returned an %ERRORLEVEL% variable?
I expect to press 1, 2 or ENTER as my "choice" command options, but I'...
3
votes
1
answer
226
views
Script to swap two words in folder name
At work I've got a Windows directory housing about a thousand folders named
Name, Surname
and need these to be named
Surname, Name
I've done some searching here and on StackEx and haven't found ...
0
votes
1
answer
94
views
Monitor a window title and trigger action on change (Windows)
I already found out how to get the window title of a certain process and save it to a file with the following cmd:
tasklist /fi "imagename eq process.exe" /fo list /v | find "Window ...