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.

learn more… | top users | synonyms

1
vote
1answer
12 views

Batch process on photos to be match based on eye positions

I'm not sure if this question related to this site. I have a series of photos (faces) that are different in distance and pose from camera (all of them are selfies) want to match them based on eyes ...
2
votes
2answers
28 views

Batch merge/mux .srt with .mkv files

I have a folder with: TVShow - Episode 01.mkv TVShow - Episode 01.srt TVShow - Episode 02.mkv TVShow - Episode 02.srt TVShow - Episode 03.mkv TVShow - Episode 03.srt and so on... I already know ...
0
votes
2answers
27 views

Copying and renaming of .xlsm files using batch

Its glad to be here and i am really excited n new to batch scripting. I have been using a batch containing below for copying an excel from one folder to another { @echo off cp -r ...
0
votes
0answers
9 views

How i exclude from deletion some files inside a FOR /D %%G (“folder”) do erase “%%G\folder2\folder3\*.*” [duplicate]

I made this line for /D %%G in ("%SystemDrive%\Users\*") do erase /F /S /Q "%%G\AppData\Local\Temp\*.*" how i can make it so "file.exe" is not deleted on this command or is there a better way to ...
0
votes
1answer
25 views

can you start a program at windows startup using bat file and send it file path

can a bat file or vbs file take an argument (a path to an exe file) then create a shortcut to that file and place in the startup folder or add a registry entry to run that exe at windows startup but ...
3
votes
0answers
12 views

Terminate the Access macro after a specific time

I am running several MS Access macros from a batch file. The macro runs several queries in AccessDB. Things are working fine. But, I want to add a check. If a macro runs longer than a specific time, ...
0
votes
1answer
11 views

“If” statements not working as demanded in batch game, and math not working properly

When the following piece of code is run in my Batch game for a fight, no matter what the input is it will always attack and go to FIGHTPROCESSORLOOP, and will tell me "Unbalanced parenthesis", while ...
2
votes
1answer
41 views

Batch Script to Bulk Rename Files - Strip off Parenthesis and all Characters between

I wish to rename a group of files in a particular folder in such a way that everything between and including the parenthesis is erased. For example a file with the name of: "78 Tax Tips for ...
0
votes
1answer
15 views

Copy file name to clipboard and paste it in chrome omnibox

What I'm after is to be able to come home and have the webpages I need already open. Using a combination of IOS Siri & Reminders, Evernote, IF (formerly IFttt) and Drop-box ive managed to be able ...
0
votes
0answers
21 views

Moving Files From a folder into other folders

How do I move files (.mp4 .avi .mkv) from a folder on my desktop to one on an external drive. The folder map looks kind of like this: C:\Users\Zac\Desktop\Finished\Folder1 ...
1
vote
1answer
17 views

Run Atom using a bat file after changing directory

I have writen in my bat file cmd /k cd /d"C:\Users\amanz\Desktop\Introduction - Computing\Java files" call atomer.bat right now, it just seems to change the directory and stops right there. It ...
0
votes
0answers
18 views

Could not start PSEXESVC service on Target Machine

I want to run batch file into remote machine and i was using psexec cmd for that but i got error like "The remote procedure call failed." My command is, E:\user>psexec -i -s -d \\192.168.1.41 -u ...
0
votes
1answer
20 views

Batch convert TIFF to PDF and add text

I got a bunch of TIFF files that I am interested to convert to a single multipage PDF file, which should be easily achieved using ImageMagick. However, I'm also interested in adding text to each ...
0
votes
1answer
20 views

Batch file to detect when a device connects to hosted wireless hotspot on a laptop

I have created a wireless hotspot on my laptop using: netsh wlan start hostednetwork This works perfectly. I have a raspberry pi that automatically connects to this network automatically, however ...
1
vote
0answers
21 views

Creating a CMD Context menu to copy filepath

So I created a context menu in the registry HKEY_CLASSES_ROOT > * > shell > copy > commmand > cmd /c dir "%1" /b /a:-d /o:n | clip What this does is copies the file name when I right click on a ...
1
vote
1answer
66 views

How to search for a specific file with batch

I want to create a batch and need to find a specific file, is it possible to find it? It has to be a command that searches through all drives until it finds the file, I want it to be usable for ...
2
votes
0answers
22 views

Why is this DOS batch file that installs Cygwin unattended failing?

After assembling information from all over the Internet, I've managed to come up with a DOS batch script that should be working AFAICT, but after the Cygwin setup executable finishes (seemingly ...
1
vote
1answer
18 views

Bat file doesn't log when running from task scheduler?

I made a bat file which restarts 2 services, and I have it run in task scheduler. If I run the bat file normally, I can see it logging in current directory as the bat file. But if I run it through ...
0
votes
1answer
19 views

Create schedule task from xml file by batch file

I have a schedule task in my test machine. Test machine is win 7. I export the task in xml and I am trying to create a new similar schedule task as i will have to create same schedule task on more ...
1
vote
1answer
19 views

Multiple line Windows Batch File issue

I have a batch file with following contents Line 1 "C:\Program Files (x86)\Dell\SysMgt\bmc\ipmish.exe" -interactive -ip 192.168.1.5 -u root -p Password after this it goes to prompt IPMISH> Line 2 ...
0
votes
0answers
23 views

Write on screen directly on top of everything

Is there any way to make some huge text appear on screen on top of everything? something as shown below. I know I can use Rainmeter but i need something that can be used in batch files.
1
vote
1answer
28 views

How to batch copy & rename files?

I'm using windows server 2012 R2. I have a folder with a bunch of files and I want to copy for every file in that folder 20 times into another folder but the newly copied file has to be renamed using ...
0
votes
0answers
22 views

Batch render .mp4 to .webM keeping folder structure

I'm not a native mac user but I've managed to put together a code for batch converting .mp4 to .webm which is: for i in *mp4; do ffmpeg -i $i -c:v libvpx -qmin 0 -qmax 20 -crf 10 -b:v 1M $i.webm; ...
2
votes
1answer
57 views

Windows Batch File Rename to Replace %20 Characters with _

I have a folder with a lot of files that I need to rename. The original format for example is ABC%20DEF%20GHI%20JKL.xyz. What I need to do is to replace each %20 with _. So essentially I'm parsing out ...
1
vote
0answers
22 views

Install network printer with batch file

I have one printer connected to a RaspberryPI and many clients. To save time, I want to create a batch file, that installs the printer and its driver automatically. Here is what I have by now: ...
2
votes
1answer
20 views

Batch FOR loop not working

So I am trying to a procedure of converting images in a directory, but it just doesn't run at all, and I fail to see what's incorrect in my batch code: FOR /R %a in (*.png) DO ( files\pngnq -s 1 ...
1
vote
1answer
55 views

Net Use command with relative target path

I have a batch file located in several folders and in this file I need to replace the old subst T: . command for net use because the units (drives) have different properties in windows 7. However, I ...
-2
votes
0answers
17 views

Is there a label/goto in python? [migrated]

We can use goto and :label in batch. Is there anything like it in Python? I am a beginner in python. Thanks SuperUser
0
votes
0answers
32 views

Batch Delete User Files every 2 Weeks

I need a Batch-Script which delete Private User Files every 2 Weeks. User Files Admin, Public and a Domain-Account "dJas" shouldn't be deleted. This Script crashes Windows @echo off & setlocal ...
1
vote
1answer
35 views

Command in batch file in Windows

I have the customer display Logic Control LD9000 and POS software, on customer display I want set normal display mode, so I send in CMD in Windows ECHO ^Q>COM1 The display changes display mode ...
0
votes
1answer
76 views

How to run batch file at startup (Windows 10)

I am trying to run a batch file with these contents: ECHO OFF TIMEOUT /T 2 /NOBREAK DisplaySwitch.exe /internal TIMEOUT /T 2 /NOBREAK DisplaySwitch.exe /external I've tried putting a shortcut to it ...
0
votes
2answers
17 views

UTF-8 not recognized in SQL batch process through Putty

I have an .sql file with a few simple "Insert into" SQL commands that are being inserted into a table called Künstler. insert into Künstler (name) values ('Mariah Carey'); insert into Künstler (name) ...
0
votes
0answers
27 views

What is the symbol for all folders in a folder when you dir a path and export to .txt?

I have a folder called root\sound\weapons. In root\sound\weapons I have: ak, m4, m9, etc., and in each of these, I have five sounds. I want to dir root\sound\weapons\ak,m4,m9\*dist.wav /B /O ...
1
vote
1answer
41 views

How to create multiple subfolders in a particular folder with an iterating loop

I want to create 25 different folders with specific names into one particular folder. I know how to create a folder with subfolders but not with multiple folder names in an iterating batch or command ...
1
vote
1answer
17 views

How to execute a folder (vpk.exe) with cmd

I have a vpk.exe application which if i drag a folder onto the vpk.exe the folder gets nameOfFolder.vpk file. Its for game moding. How can i do this with batch. Batch drag and drop onto the vpk.exe.
1
vote
1answer
63 views

Script to check Computer Model and Download BIOS File

I've just started working with WindowsScripting and would like some help figuring out how to write a Script that would check the model of a Computer and store the result in Variable in the Bat file. ...
1
vote
1answer
55 views

How to copy a specific file from sub folders to one other folder

I have a folder named Mods and in that folder I have: root\sound\weapons\ak47\ak47_dist.wav root\sound\weapons\m1\m1_dist.wav root\sound\weapons\m4a1\m4a1_dist.wav etc... In every ak47, m1, ...
3
votes
2answers
38 views

How to export the paths of folders which are inside a folder to an txt with batch or cmd

I have a folder that have folders root/sound/weapon/ak47, root/sound/weapon/m1. root/sound/weapon/m4a1 etc. ak47,m1,m4a1 folders is in root/sound/weapon. I want to export these paths to .txt with ...
1
vote
2answers
33 views

Using DiskPart in a batch file to remove a disk

I would like to embed diskpart command with my batch file. for example "gpupdate.bat" is my batch file @echo off @echo off cd: c:\windows\system32 gpupdate /force exit I want following commands to ...
2
votes
1answer
72 views

Building a DOS batch script to rename files

I'm currently stuck on an issue with a DOS batch script I’ve been working on, and I need help renaming the files. Here is the renaming scheme I’m searching for: Original filenames ...
0
votes
1answer
30 views

Printing result of Ping in Yes or No form in a Text File

I want to print the result of ping in a Yes or No form. If we are getting reply than print Yes in a file or else No. [test.txt=>Input File hassan1.txt=>Output File ] @echo off for /f "tokens=*" %%a ...
0
votes
1answer
41 views

Batch file to get the domain name of hundreds of servers in a multi domain environment

In a multi-domain environment, I need to get the "Domain Name" the servers are joined to. I have a list of hundreds of Windows servers with the hostname only (not FQDN). I was wondering if there is ...
2
votes
1answer
35 views

Check if a process is running or not continually, and start multiple programs if not and terminate itself

I found this at stackoverflow and it's code is this:- @echo off Set "MyProcess=calc.exe" echo "%MyProcess%" tasklist /NH /FI "imagename eq %MyProcess%" 2>nul |find /i "%MyProcess%">nul If not ...
0
votes
1answer
56 views

Windows batch file not running when I double click, how to restore association with cmd.exe?

Windows 8 64-bit. The user I'm logged in as has admin rights. When I open a cmd windows the window title even says "Administrator: cmd.exe". So, I set my .bat file association to have the .bat file ...
-1
votes
1answer
47 views

script or powershell or batch file to select and connect to a specific SSID [closed]

Is anyone aware of a way in windows 10 to programmatically select (i.e. connect to) a specific SSID/wiFi network? I have a couple of use/test cases where I need to connect to different SSID's at ...
0
votes
1answer
39 views

Batch Image auto crop, apply fixed width, and maintain aspect ratio

I'm finding it hard to find a solution to what I'm trying to do. Simply put, the usage of these images is for an online store. The IrfanView batch processing using the autio crop borders basically ...
-2
votes
2answers
82 views

How to stop every batch file opening as a process named cmd.exe as seen in task manager

This is very complicated. I'm developing a malicious batch file just to test myself. This will be done at the startup. what I have is Three + Six (hidden) Batch Files. First file makes six other ...
0
votes
0answers
15 views

On Click events - Similar to “Show Numbers” in voice control

I am looking for a way to activate the functionality of Windows' voice control show numbers. Show numbers: On the voice command show numbers, all on-click events in the active number is displayed ...
3
votes
1answer
29 views

Loop/Batch file for extracting all .aac from .m4a files in folder

I'm desperate. I need to extract the .aac stream from ~1749 .m4a files with ffmpeg, but I can't get a batch file working for me and it would take years to do it manually. This is what I use for ...
0
votes
0answers
20 views

How to login a user from batch?

I'm looking for a way to login a user at a certain time of the day (for example 3 o'clock, when I'm most certainly not logged in), take some screenshot and then logout. As you can see from my ...