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

0
votes
0answers
2 views

how to extract first word of the string via windows batch

I would like to request an assist for this case. I want to get the second word of title so that I could set it as target file. Wishing for anyone could assist me here. thanks! set title=THE PROGRAM ...
1
vote
3answers
21 views

Make batch file wait for service to start when restarting services

I have a batch file that frequently restarts a group of services developed in house. We are soon moving away from these to something more stable, but for the time being the services need to be ...
1
vote
1answer
83 views

How can I recursively identify non-searchable PDFs and copy them to a folder?

Further to an earlier post which provided a script solution: From my question it may be possible to tell that I am a computer user and have no programming knowledge. I have hundreds of searchable ...
-1
votes
1answer
23 views

Batch- file to move all files from one location to another in windows?

what I'm after is a batch file that will move all files from one folder to another, with the view eto schedule this as a task to run twice daily. I know the whole move command etc but appears to be ...
-1
votes
1answer
22 views

Batch: Cannot read a specific variable

It's me, again. The team suggested we develop a new loading system which automatically detects the type of the save file instead of the user having to select what the type of the save file is. ...
0
votes
0answers
11 views

How can I batch convert all of my video files to AAC audio without converting the video?

I've used XMedia Recode to do this and it works great. I set video to "copy", audio to "convert", and it takes 2 minutes for a 2GB file. There's two problems with it for batch work though. It doesn't ...
15
votes
5answers
14k views

How to delete files from a folder using a list of file names in windows?

i have a folder with 2K+ files in it, i need to delete around 200, i have a txt file with all the file names i need removed ordered in a list, how do i remove the specific files from the folder using ...
2
votes
1answer
39 views

How would I query, then toggle Windows updates off and on via a batch file?

Please take it easy on me if I speak out of place is this is my first post. :-) but I've been looking for a way to query the Windows Update service through a batch file and based on its current state, ...
0
votes
2answers
16 views

Error calling .vbs from .bat

I am currently trying to call a .vbs file from a batch file and it keeps giving me an error. This is my batch file: @ECHO ON cscript "C:\Users\Alex.Newton\Desktop\VBScripts\First scripts\This is my ...
-3
votes
1answer
38 views

“The syntax of the command is incorrect.”

I've developed a new feature for my Batch game which gives the user the ability to define the name of their own save file along with the loading system and the new saving system is working properly as ...
1
vote
2answers
506 views

inkscape not working from command prompt

I was looking at the answer to the question (converting EPS to PDF) where they suggested using Inkscape to convert EPS to PDF images. I need the exact same thing. Using the GUI, it works like a charm. ...
-1
votes
1answer
20 views

How to run my script on logon screen when user logs on or has to change his/her password [on hold]

I want to know how I can automatically run my script on the logon screen when a user changes or when his password expired and has to change his password. Thank you
0
votes
1answer
30 views

How to run batch file command line argument on another server?

I have Encrypt.bat on \\RDWAPPserver which contains code to encrypt the file and upload it to FTP server by using 2 commandline parameters. Encrypt.bat needs 2 commandline parameters exl: ...
-2
votes
2answers
29 views

Destination and Start in on a batch

On a normal windows shortcut we have the Destination field and the Start in field. Can I do those on a batch ? . Complicators: Windows is on C: The application is on E: The Start in folder is on ...
0
votes
1answer
46 views

How to show a confirmation dialog when a batch file window is closed?

When users click the close (X) button of a batch file window, I want it to show a confirmation dialog asking "Are you sure want to close this batch file?" with Yes/No options. How can I do this?
1
vote
1answer
42 views

ffmpeg | batch convert | make same filename

How would I use ffmpeg to create a batch convert file for sample rate conversion, such as: $ ffmpeg -i *.wav -ar 22050 *.wav Take note, that i'm only doing a sample rate conversion, but in the end ...
4
votes
3answers
6k views

is there an escape for '&' character in the command prompt?

I am trying something like: set pwd = abc&123 echo password %pwd% I get the result as... '123' is not recognized as an internal or external command, operable program or batch file. password ...
0
votes
2answers
59 views

I can't run .bat and .cmd files with start command (Windows 7)

I can run .bat and .cmd files typing his names in windows console, but if I run with start "" file.bat I get this error: System can't run specified program. I have tested with a very simple file ...
2
votes
8answers
12k views

Why does the PING command in my batch file execute in a loop?

I created a .BAT file in Windows 7 that has the following line: PING XXX.XXX.XXX.XXX -t (XXX replaces the actual IP number). However, when I double click on this batch file, I can see the PING ...
26
votes
11answers
68k views

How do I create a Windows Batch file that does not show the Command Prompt when executed?

I have installed a ruby gem called Redcar, which is launched from the command line. When it runs, it steals the shell until it terminates, so I have to create a new shell window to continue doing ...
-1
votes
4answers
62 views

How do I make a registry entry with command prompt?

How can I make command prompt (batch) add this entry to the registry? To set the value of the LocalAccountTokenFilterPolicy registry entry Open the registry key: ...
3
votes
2answers
3k views

Batch convert all html files in a directory into pdf files in windows?

I see one solution so far: http://www.htmldoc.org/ Are there any more out there which are suggested?
0
votes
0answers
14 views

VLC Batch file playback

I'd like to be able to run a batch file from my computer that does the following: Open VLC Play a video file until it said file ends. Stream webcam (dshow://) whilst playing a sound file only after ...
0
votes
1answer
12 views

Need command to edit a service's log on to Local System Account

When you right click a service in services.msc and go to properties and Log On, it lets you change it to Local System account, how can I switch to that setting with a batch command, I want to switch ...
0
votes
2answers
35 views

How to write to a batch file to tell it to write to another batch file

How to write to a batch file a command which itself writes to another file. Basically what I'm trying to achieve is this File1.bat echo abc >> op.txt File2.bat echo abc >> op.txt ...
1
vote
2answers
78 views

Copy all files from a list of folder locations

I have a list of folder locations from which I would like to copy all the contained files at these locations. The list of folder locations are stored on a seperate line within a text file (.txt). All ...
0
votes
1answer
5k views

How to make PuTTY's font automatically change color (while connected to a Linux server) as I did with Windows cmd.exe using a background batch script?

I was able to create a Windows Command Prompt that automatically changes its text color on a white background every ~1.5 seconds, thanks to the help of @dbenham and @Woody. I also use PuTTY every day, ...
0
votes
3answers
42 views

Use batch to make duplicate files based on one extension

How can I make copies of some files with a specific extension (but changing the extension) just based on their extension? I've tried just showing those files but get nothing: @echo off for %%f in ...
1
vote
1answer
49 views

How to upload file in FTP server using batch script?

I have created batch file called FTP_automation.bat which contains code below SET MyPath=E\PGP\test_pg ftp open 142.245.30.165 21 TESTA9MS test11 binary put %MyPath% quit Pause The thing is when I ...
0
votes
1answer
15 views

mailto command line not able to set additional parameters

I am trying to create a simple batch file to send an email. I am following steps found online and came up with a simple example like this: START ...
0
votes
0answers
23 views

Ampersand & special character on a Active Directory Name and CMD commands

I have a group that part of its name contains an ampersand & I am trying different commands for example dsquery group -name A&I-group but it does not work I tried escaping it using the ...
2
votes
1answer
20 views

Batch File XCOPY Invalid number of parameters

I'm trying to create a backup batch file, it's been a number of years since I last did one and I'm having a bit of trouble. I am creating a folder in one location with the date and time in the folder ...
2
votes
1answer
32 views

How to pass parameters in batch file and zip the file using 7z.exe?

I need to create a batch file as per below requirements 1) pass path1 & path2 while running the batch file exl: testrun.bat E:\ERP\test1.txt E:\ERP\header.txt 2) Need to store these command ...
0
votes
3answers
77 views

Recursive command-line md5 generator and verifier

I want to write a batch script that has the ability to generate and verify md5 hashes of an entire directory tree. Is there any program like this for windows? I can find many md5 programs, but they ...
0
votes
0answers
16 views

Term service will not start

I just reinstalled Windows 7 professional and the first and only thing I did was run these in the command prompt to enable remote desktop: reg add ...
0
votes
1answer
43 views

In windows, filter and delete image based on dimension(or any search filters for that matter)

In windows explorer, I can filter a folder based on the dimension criteria, say: width:<800 height:<600 (so that I filter small images) height:>2000 (so that I filter portraits) and then delete ...
0
votes
1answer
25 views

set telnet to use NTLM with command

To set telnet to use NTLM authentication you type in telnet and press enter then type set NTLM How can I make it do this with a command. using telnet set ntlm for example does not work.
0
votes
2answers
783 views

Combine Batch/WMIC + ANSI/UNICODE Output formatting

In creating an auditing tool for my network, I'm finding that WMIC is outputting with spaces in between each character when accompanied by echoing regular text. For example, This: @echo off echo Foo ...
0
votes
0answers
47 views

Set Windows 7 to “Performance optimized” under Visual Effects with Batch script

I have this .bat script to start a specific game: @echo off if not "%~1"=="p" start /min cmd.exe /c %0 p&exit start "" "GTAVLauncher.exe" timeout /t 60 /nobreak >nul taskkill /f /im ...
0
votes
1answer
49 views

TOUCH a batch file from itself

I'd like a batch file to touch itself to an arbitrary date/time. I've tried... touch.exe -xamq -t 201010201020 -- batch.cmd start /b "" cmd.exe /c "touch.exe -xamq -t 201010201020 -- batch.cmd" ...
-1
votes
3answers
49 views

Commands not executed with %comspec% /k

I am trying to execute a .bat file with a set of commands which can be executed individually through the command line, but not all together through the script: %comspec% /k ""C:\Program ...
0
votes
1answer
23 views

Getting GUID from Mountvol in Batch file

This is sort of silly, but today is the first day I'm using batch scripts, so bear with me. I'm using the following code to find a particular drive letter assigned to a volume. set ...
0
votes
2answers
65 views

%%f in a batch file with Windows 7 Professional 64 bit

I have a line like the following in a several batch files: FOR %%f IN (%*) DO something.exe %%f I've used them for a long time with no problem. I recently had to replace my hard drive and had ...
8
votes
4answers
10k views

How do I batch convert thousands of NEFs to JPEGs?

I accidentally set my camera (a Nikon D70) to shoot in NEF only and not NEF+JPEG. Obviously, this will be a major pain when I want to go through them all. I don't envy having to wait for seconds at a ...
0
votes
1answer
39 views

CMD command to open a file using link

Below is my batch file script @echo off setlocal enableextensions enabledelayedexpansion for /f %%b in (C:\COST\Programlink.txt) do ( %%b pause ) And in the programlink.txt as mentioned in the ...
0
votes
0answers
12 views

netsh wlan will not show computers on network

I am using the following command to create a WiFi Hotspot: netsh wlan set hostednetwork mode=allow ssid=SSID_NAME key=PASSWORD netsh wlan start hostednetwork pause There is just one problem though, ...
0
votes
0answers
19 views

Robocopy won't work with Task Sheduler in Win7

I need to copy file from server to local disk cca every 5 minutes. Created batch file work fine but from Task scheduler it does nothing. The Batch file looks like this: ...
0
votes
0answers
25 views

Running Batch files when a Pop up message appears from another app

I need to run a batch file when ever a particular Pop up message occurs. Basically I have a batch files, but I cannot directly call it from my application. but I can create a Pop up message from my ...
1
vote
1answer
36 views

WMIC |more has extra rows when .csv opened in Excel

I am trying to output the name and version of each program installed on my system to a .csv file. I could do something more complicated with VBScript, but would prefer to keep this very simple to ...
0
votes
2answers
132 views

Windows Command line get disk space in GB

I'm trying to create a batch file to pull the total size and free space of the C:\ drive of servers (locally run script). I also need the output to be easily readable, so bytes is not going to work, ...