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

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
48 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
34 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
148 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
63 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
43 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 cmd....
1
vote
2answers
332 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 ...
3
votes
1answer
107 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
79 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
139 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
78 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
528 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
195 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
2answers
164 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
143 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
18 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
2answers
58 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
22 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 ...
3
votes
0answers
40 views

Taking screenshots when I'm not logged in

I'm looking to take several screenshots from an application at a certain time of the day (let's say 3 o'clock, when I'm certainly not logged in) . Currently I'm using NirCmd to take the screenshots, ...
2
votes
1answer
78 views

Windows UnRar Batch script need to ignore .part02.rar through part99.rar extensions

I have two windows batch scripts that both work to recurse the folder they are placed in, and extract every .rar file into the folder of the rar files. however when a folder uses the structure: file....
1
vote
1answer
164 views

Write output of Windows Batch file command to text file?

I want to write the output of a robocopy command into a text file to see which files were copied. I tried robocopy drive:\ destination:\ /e /v>log.txt and robocopy drive:\ destination:\ /e /v /l&...
4
votes
2answers
57 views

for loop…in a for loop…in a for loop?

So I have a bunch of locations I need to check for two possible filenames, however the directory names vary. So here's essentially what I'm trying to optimize: for /r "%ProgramFiles%\WildGames" %%i ...
0
votes
0answers
40 views

Compiled batch file doesn't require admin privileges?

The following command requires admin rights: netsh wlan set hostednetwork mode=allow ssid=%ssid% key=%pass% However, when I compile the batch file to an exe using the converter at f2ko.de, the ...
6
votes
1answer
242 views

Variable for getting absolute path in windows batch script

I have following script to list out all the files, recursively from a directory, having a .phtml extension. @echo off setlocal for /f %%G in ('forfiles /s /m *.phtml /c "cmd /c echo @relpath"') do ...
0
votes
1answer
41 views

How to log executed batch files?

Let's say I executed 5 batch files yesterday and now I want to know the order of the execution of the files. Does Windows log the execution, maybe in Windows Event Logs or something? Or is there any ...
1
vote
2answers
224 views

How to use Bash script to find .mov files recursively and convert them to .mp4 using ffmpeg

I'm working on a Mac system in a video company where I have to clean up a lot of folders and subfolders containing large intermediate video files. So I've been looking for a way to batch convert ...
0
votes
0answers
33 views

Batch file with Loops doesn't work

I made the following batch file to sort some files, but I don't know why it does not work: pause for /l %%x in (1, 1, 12) do ( FOR /L %%G IN (1,1,24) DO ( for /r %%a in (*%%x*%%G*) do ...
1
vote
0answers
30 views

Block rename files with wrongly encoded filenames in Windows

I have a large number of files that (due to some multi-stage transport) have wrong filenames. For example a file that should be named Τεχνικός Di 04.02.2014 23_43.msg is currently named +ñ+...
3
votes
1answer
39 views

Interrupt batch job between files

I need to setup my bash batch job (compressing 5.1k files inplace) so that if I need to stop / resume the job it will wait until it is "between" files (has just finished one and hasn't started another)...
3
votes
2answers
87 views

Batch Files to Remove minus sign from Filenames

I am attempting to clean-up some file-names in a particular folder and I'm wondering how I would go about creating a batch file to remove a minus sign from the beginning of each file-name. I have a ...
0
votes
1answer
197 views

Auto start PuTTY from command-line with a specific startup path

I start multiple PuTTY sessions everyday with a specific path in each session. I have made a command in batch file as Start "c:\putty.exe" abc@1.1.1.1 -pw abc123 22 How do I proceed further to ...
1
vote
2answers
174 views

Open file in Notepad++ as a tab without closing launched process

Some old tools are designed to work with an external text editor. I am stuck using a legacy tool that does this in the following way: Create a temporary file with the content to be edited. Launch ...
1
vote
2answers
216 views

Export Windows XP event logs cmd

I need to export a specific Windows XP event log from the eventviewer to a ".txt" file. My scenario is that the user programs a chkdsk to be execute on next reboot into a remote machine, and after ...
0
votes
0answers
68 views

Batch to enable and disable a setting in Internet properties

I'm trying to find a .bat script to enable and disable a certain setting when clicked in Control Panel > Network and Internet > Internet options > Advanced > Browsing > Use inline autocomplete in the ...
0
votes
1answer
62 views

Windows Batch to automatically unmap Network Drive on Wifi?

I have number of network drives for work. When I work from home, my computer is very slow due to these network drives trying to connect. Does anyone know of a script, which will automatically unmap ...
0
votes
0answers
14 views

create parent and child folders based on folders being transferred .bat script

I’m using windows 7. I am currently using the following .bat script file using scheduled tasked for once a day: set source=C:\Users\myid\Desktop\1 set destination=C:\Users\myid\Desktop\2\ xcopy %...
0
votes
1answer
121 views

Create a batch file to remove all files and subfolders in a folder

I have recently installed a new NAS and am trying to create a 'Temp' folder as I had before, basically a folder that is used to move files around during work hours and then deleted every night. My ...
0
votes
0answers
41 views

run batch file only when the same process is not in progress

I would need to run batch when user logs in, but if any other cmd.exe is running, then batch won't execute. Maybe something similar to this: How can I recognize a running batch file in task manager?. ...
0
votes
1answer
205 views

Using a Batch Script to Move Specific Files with Specific File Contents

I am looking to find a file with the contents 'Radiac' in one particular folder and then move all those files to a another folder. For example: I have might have 3 identical file-names with different ...
-1
votes
2answers
100 views

Rename Files In A Batch Script

I'm attempting to rename all files in a folder via a batch script but I'm getting an incorrect syntax error that I can't seem to identify: for %%f in (%Source%\*DebugLog.Config) do %%f ren %%f "%...
1
vote
1answer
74 views

Batch file input issues on remote computer

I made a batch file that takes various inputs and then uses them in the commands ahead. This script works fine on my computer but when I put this script on another computer and use PsExec.exe to ...
1
vote
0answers
34 views

Login to multiple putty sessions, each with a new path

I login to multiple putty sessions everyday to start some services. So in total I have 20 different paths. So what I do is: I login to putty and copy/paste the path in each session. Now, what I ...
0
votes
0answers
70 views

How to tell from the command line if a PDF has an browseable index/table of contents?

I use Linux. I need a command line way to tell whether a PDF file has index/table of content. Knowing that a PDF file contains structures that could be called also an index/table of context, and to ...
0
votes
0answers
27 views

Win7 long filename passed into batch file only see short file name

I have a batch file that is called from the context menu , all it does is pass in the file name to the batch file. From the context menu [HKEY_CLASSES_ROOT\*\shell\Label Back Up File\command] @="C:\\...
0
votes
1answer
209 views

Batch file to get remote system information in a loop

Sorry about the title, I struggled to explain it in one line. I have a simple script which gets a remote systems status, and returns the line which contains the total memory, and outputs it to a file:...
-1
votes
3answers
53 views

batch script to copy from external PC

I'm trying to write a batch script for copying appdata files to my usb drive...i figured (which i'm not sure about) that if in any pc i plugin my usb %appdata% can be used as default path but for ...
0
votes
2answers
193 views

How can I make windows command prompt return a substring from a command ouput

My path is pointed towards a cloud folder (located at various places on my various devices) wherein I have stored a batch file that is supposed to locate itself on the machine, and then make that ...
0
votes
0answers
37 views

Batch with Multiple REG ADD /f but Some Lines Still Prompting for Confirmation

I created a CMD file with multiple REG ADD commands - they all are successful when it is run. All of the REG ADD lines contain a /f to force the change without confirmation. The are all contained in ...
-1
votes
1answer
139 views

Batch script to merge files using copy command in numerical order

Would appreciate it if anyone can help me with this request. I need a dynamic batch script which can do the below command for ANY number of files: Copy 1.txt + 2.txt + 3.txt + 4.txt newfile.txt If ...
2
votes
1answer
172 views

How to use wmic to kill a cmd.exe instance searching by it's command line?

I have seen that is possible to use wmic to find the id of a process searching for the command line which was used to start it. But I have 2 problems. I need to use this in a batch file so I cannot ...