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

1
vote
0answers
10 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
36 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
128 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
37 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
11 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
29 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
17 views

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

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
39 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
30 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
31 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
32 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
38 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
24 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 ...
0
votes
0answers
32 views

Batch - reading a file one character at a time

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
36 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
28 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
36 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
33 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
25 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
22 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
42 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
34 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
39 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
58 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
44 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
42 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
69 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
28 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
36 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
31 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 ...
0
votes
1answer
26 views

How to find out if it's the first boot on the current day

I have a batch file in my auto start which should behave a bit different on the first boot. How can I find out if it's the first boot on the current day via Windows cmd? May be there's some way ...
0
votes
0answers
100 views

How to batch print SWF files to PDF?

I am using windows 7 X64. I have installed Adobe Acrobat, so that I have a virtual PDF printer. I have also install the adobe flash player on the system. I open the SWF file using the flash player, ...
1
vote
1answer
42 views

How to batch resize many photos - but keep timestamp intact?

I have thousands of photos in many folders. I want to batch resize them to e.g. 3000px on the longest dimension and keep the timestamp intact. I have used the wonderfully simple tool Phatch to resize ...
0
votes
2answers
58 views

Any problems from copying system32 into syswow64?

I ran a .bat file as an administrator. The .bat file said to copy all .dll files from the current directory to the syswow64 directory. Something like: copy *.dll c:\windows\syswow64 Unfortunately, ...
3
votes
2answers
75 views

How to open a batch file and execute a command AFTER opening command prompt

I am trying to create a batch file that first opens command prompt and then executes "prompt $t$gEnter Command Here$g". I have tried starting it with "%windir%\system32\cmd.exe" and then using ...
-1
votes
0answers
75 views

How to download all my friends facebook profile pictures at once, named as their names?

Anyone know if someone has made a tool to do this? A browser extension? A python script? An app? I'd like to have the current profile picture of each of my facebook friends downloaded into a folder ...
1
vote
0answers
37 views

Command line edit of parental controls

I'm new to windows administration and pardon me if I write something stupid :) I've been given a task to enable installation of specific apps on win7 user account with parental controls restriction. ...
0
votes
3answers
58 views

How to receive a parameter in a batch file

I have asked a question, Use an environment variable to point to an "Open With" program, which received a fantastic answer. To add myapp.exe, residing in %MYAPPSDIR%, to the Open With ...
2
votes
1answer
30 views

Batch script is adding funky characters when a command gets executed

I have this script and when I try to execute it, a bunch of random symbols show up in the command prompt: cd "X:\folder\subfolder" svn update pause I have no idea what those symbols are called or ...