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.

learn more… | top users | synonyms

2
votes
1answer
13 views

Copy list of files to new names

Windows 7 Pro I want to copy a series of files, all named "cover" from different directories to a single directory, and give them all new names. I need help with either of the below options: Option ...
0
votes
1answer
13 views

Directory with same name subdirectory move

I got myself stuck and can't seem to find a quick way to fix this. I have an external HDD with a folder structure like this: \folder1 \folder2 \folder3 some of these have a subdirectory named the ...
0
votes
2answers
30 views

Why doesn't my IF ELSE work?

It's a simple script I wrote, nothing fancy at all @echo off echo 1 = stream1 source echo 2 = stream1 high echo 3 = stream1 medium echo 4 = stream1 low echo 5 = stream2 source echo 6 = stream2 high ...
0
votes
0answers
13 views

Batch command to delete users not on a list

Is there a way to delete users not on a list in a .txt file? Say I have the following on my system John Peter Mike Bob Now only John and Peter are on the authorized users .txt file John Peter ...
0
votes
0answers
6 views

loop for path name with space fails

I have problem with looping through file which path name contains space SET MPATH=\\server\path\some folder with space\Sample.txt for /f %%a in ("%MPATH%") do (set file=%%~fa) for /f "skip=1 ...
-1
votes
0answers
10 views

Generate mount point (disk space) threshold alert in Windows

How can I perform a certain action (e.g. run a command to send an e-mail, etc.) if a disk has less than 10% free space?
0
votes
0answers
19 views

How can I set up a batch process for watermarking and printing pdf files?

I want to automate a process of applying individual watermarks to and printing a fair number of .pdf files. My main program for handling .pdf files is Adobe Acrobat Pro XI. Acrobat has a feature ...
1
vote
1answer
22 views

Count number of lines in file using batch

I am using TrailerCount.bat file to count the number of lines in text file using below mentioned code @Echo off ::set newline=^& echo. SET FilePath=%1 Set /a _Lines=0 For /f %%j in ('Type ...
0
votes
1answer
32 views

Windows Batch Script for getting disk space details

I need to get the mail alert for disk space details. I have found this script in our forum. When I run this script in command prompt, it generates the output as mentioned below. But when I run this ...
1
vote
1answer
28 views

How to edit a registry key for every profile, without knowing their name?

I want to change the registry key HKLM\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features\S-1-5-21-192855608-1092268202-2311440418-1001\FeatureStates in Batch. However, ...
0
votes
1answer
43 views

Windows batch file deletes and recopies files WAY too fast - should take 15+ seconds, takes < 1 second. Why?

I wrote a script that checks to see if a folder exists, and if so, empties it. it then waits 5 seconds, then proceeds to recopy new (or maybe the same) files back into the folder. When the folders ...
1
vote
2answers
131 views

Escaping the < sign with ^ does not work in .bat file

I'm trying to write a batch file that can generate some XML config files, but escaping the < and > signs does not seem to work. At the start of my script i wrote a test: SET ...
0
votes
1answer
15 views

Command for sharing same folder with multiple names

I’m currently working on an improvement of our deployment process and I’d really like to automate one of the new steps. Through Windows UI I can share the same folder on the network under multiple ...
0
votes
2answers
38 views

How do I rename multiple files on Windows? [duplicate]

I have 2800 files, all of whose names start with a four-digit number followed by " - ", and I want to delete all those leading numbers from all the files, leaving only the alphanumeric file names1.  ...
0
votes
0answers
12 views

Batch copy files from client list to my server

Could you help me to create batch file to get information from client to server. I have 10 clients such as 1. CU01 2. CU02 3. CU03 . . . 10.CU10 I would like to copy file from 10 clients on ...
0
votes
1answer
36 views

Windows 7 Batch file to turn off firewall and restart computer

I'm trying to create a batch file to do as the title states. Currently, I have: netsh advfirewall set allprofiles state off sleep 30 C:\windows\system32\shutdown -r -t 00 This batch file restarts ...
-1
votes
0answers
18 views

How can I learn to use JSR 352 for Batch Processing? [closed]

I've searched for several tutorials, but some guides require a baseline level of knowledge of used APIs, or assume that users have used prior batch clients, or vaguely delineate differences between ...
1
vote
3answers
31 views

Start a Command Prompt and then change the title of it via batch file?

I'm trying to start a command prompt via a batch file, echo some text, and change the title of the command prompt. I'm trying: start cmd /k echo This is a terminal /k title Terminal The echo text ...
0
votes
1answer
43 views

Batch to reassign drive letter based on volume name

I have a "WINPE" volume and I am trying to get a batch script that will assign it drive letter "Z:" Someone gave me the script below but it does not work for /f %%D in ('wmic volume get ...
1
vote
1answer
31 views

Disabling the “Windows cannot find '[foo].exe'” popups

When I use the start command in a batch script to launch a program, I expect that program to be launched asynchronously; this happens exactly as I'd expect it would if the program that I'm launching ...
1
vote
1answer
25 views

Terminate endless running process in a batch file

I am trying to find a way to automate a process with a batch file. The process is one that logs output to a file indefinitely until it gets a break (ctrl+c) command via the keyboard. I can't seem to ...
1
vote
1answer
17 views

change %i to %%i and nothing happened

I have a file with two columns of file name. The following command lists the content of the file. (for /f "usebackq delims=;" %i in ("C:\RENAME-ALL.txt") DO ECHO %i When I put the same command in ...
0
votes
0answers
32 views

How to make a batch command that list all the files in a directory?

I am relatively new to batch coding, and am trying to make a file that will list all files in a specified directory, with the size, is a directory or not, etc. Currently, what I have is: @echo off ...
-1
votes
0answers
9 views

How to record echo mssage displayed on command prompt using C#? [migrated]

I am using below function to call EAR_Encrypt_FTP.bat in C#. Is there any way to trace the echo messages dispayed in cmd.exe while running the batch file?? I need to process echo messages displayed ...
0
votes
1answer
41 views

Check whether FTP upload is successful or not using batch?

I am running below code in my ftpUpload.bat. If file is not uploaded to FTP server it should print "FTP upload is failed" but I am getting "FTP upload is successful" for both cases. What change I need ...
-2
votes
2answers
39 views

\/?' was unexpected at this time error in batch file

I am trying to integrate a password generator into my batch file so that it generates multiple passwords. Unfortunately it give the following error: \/?' was unexpected at this time. The expected ...
1
vote
1answer
26 views

Print multiple .bat generated passwords to a .txt file

after searching this site for "how to generate a password with CMD" I found some very useful examples. Then, I wanted to be able to print more then one password at a time (who would want to click all ...
-1
votes
0answers
37 views

Batch - reading a file one character at a time [on hold]

I am still new to Batch and would like to know if there is a way to read special characters from a batch file one character at a time. So if my file had <<>> or something like that and it ...
0
votes
3answers
31 views

How do I delete a part of a file name for a batch of files in Windows 8.1?

I have lots of files in a folder but they all start with a line of numbers and are separated from the actual file name by a "_" For example: 123123123_filename.txt 456456456_filename2.txt ...
0
votes
3answers
37 views

Count files in a folder and subfolders from the command line

How do I count all files of a given type (eg. *.mp3) in a designated folder (and optionally subfolders) from command line into a environment variable? (no PowerShell please, just batch commands)
-2
votes
1answer
18 views

Any other useful 3rd party command line utilities such has SendEmail.exe? [closed]

I'm looking for other useful tools like SendEmail.exe to use in my batch files. Such as ones that I can call form a batch file that can do something you normally couldn't do from batch. For example, ...
0
votes
1answer
24 views

Using paths with a spaces in batch script

How do I make something like this work? SET DIR=c:\program files (x86)\dir\ %DIR%callee.exe Normal solution, which is to use double quotes around the value of DIR variable works, but results in ...
0
votes
2answers
32 views

How can I break a batch script that is executing a ping without terminating the whole script?

I have a batch script that continuously pings an address and I want a way to cancel the pinging but not terminate the whole script (alternative to ctrl^C).
0
votes
1answer
31 views

How to set a folder name into a variable to use it in the same Batch file?

i want to make a batch file, This Batch file must look out, into a folder with the name "Draft" and for every sub-folder will be make a search for a .txt file "list.txt" and when finds this .txt file, ...
0
votes
0answers
38 views

Wake up computer from sleep to shutdown

I wonder if it is possible to wake up the computer from sleep at a certain time during the day and shutdown automatically. Maybe giving a popup asking for 5 seconds if I am using the computer to give ...
0
votes
2answers
36 views

How to insert a newline for every occurrence of the word abstract_ using BATCH

I have an xml I need to edit using batch. How do you insert a newline for every occurrence of the word abstract_ in the whole file? Here's a line in the xml (9999999x.xml) <related-object ...
-1
votes
3answers
27 views

Windows 8.1 Batch File Default App

I am making a batch file Contains this @ECHO OFF adb install %1 pause exit I want to make this batch File Default App for .apk files.Is Windows Send Parameters When You Open a file?If not Please ...
0
votes
0answers
24 views

Execute local commands from remote server using Xshell.

I usually use Xshell on windows to access my Linux server. Every time when I want to copy a PDF file from Linux, I need use sz file.pdf to copy the file, then locate and open the file on Windows. How ...
0
votes
1answer
44 views

Is it possible to make a VBScript which executes a batch script within itself?

I know it sounds strange, but my idea is creating a single text file which contains a VBScript and a Batch Script within it, i.e. if I run that script as a VBScript, it calls itself as a Batch script, ...
1
vote
1answer
35 views

how to identify the process for a batch file run through a vbscript

I used this forum to figure out how to run tomcat batch file silently/hidden using vbscript. The code I used is this: Set oShell = CreateObject("Wscript.Shell") Dim strArgs strArgs = ...
2
votes
1answer
40 views

Batch moving files from one folder to multiple folders based on file mask

I have a folder with more than a hundred thousand (100,000+) pdf files generated by a script that need to be moved to multiple folders based on the file name. The pdf files are all named like this: ...
0
votes
1answer
59 views

Batch converting files using ffmpeg

Can anyone tell me where I'm going wrong doing this. The idea is to find and convert all files in a directory to m4v's. Regardless of the extension. Then once it has been converted, to generate a ...
2
votes
1answer
38 views

Checking if a key is present on the windows registry through batch file

I work as IT Support for public service. Some of the jobs we have to do on a regular basis is to install some software developed by our own developers. We usually do it as procedures, in which in ...
2
votes
1answer
47 views

How to rename an executable from its details

I have loads of .exe files that got renamed to file1.exe, file2.exe, etc. When you look at a file's Details under Properties (in Windows Explorer), it has the original file name under "Product Name". ...
0
votes
0answers
47 views

VBS unzipping - object required: 'objshell.NameSpace(…)'

I know very little about bash or vbs. I am trying to make a script that will automatically unzip a zip called 'dungeon.zip', which contains a little game I programmed. I want to unzip it to a folder ...
0
votes
1answer
17 views

Extracting Lines below Specified Words in batch script and change the format

I have a "test.txt" file in the format of: xdfdfdf ydffddf zddfdfd blah ... WordA 12 23 45 ... 32 12 65 xdfdfdf ydffddf zddfdfd blah ... WordA 54 76 67 ... 68 31 85 xdfdfdf ydffddf zddfdfd blah ... ...
1
vote
3answers
77 views

Need a batch script to copy data from A.csv to B.xls

I'm a newbie to batch scripting and need help. I want to copy the contents of a csv file A.csv to the first worksheet named "GenData" in a existing XLS file B.xls. B.xls contains some macros in it's ...
0
votes
1answer
29 views

Script to enable autologon for users on a domain won't work unless I run it twice

So I'm having an issue with a script that enables autologon domain users. For some reason I have to run it twice for the option to be enabled on the computer. The Script: @echo off REM Set variables ...
0
votes
0answers
39 views

Upload data in .txt file to SQL database through ftp in command line

I have a table in .txt file with header, and an empty table Final_Beta_Table with header only in SQL database. It's a NETEZZA database and there are many other tables in it. How can I upload the .txt ...
0
votes
0answers
33 views

ProcMon - strange error when running from a batch file

I have a batch file which uses ProcMon to monitor another task and runs in a loop. Every 20 minutes I terminate procom and restart it with a new datetime-named backing file. This is to keep the log ...