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

3
votes
0answers
33 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, ...
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
0answers
30 views

Converting Multiple .doc files to searchable .pdf

I have a batch command file that runs daily converting data extract files to .txt, .doc, and then to .pdf formats. I run a series of formatting macros in Word on the .txt file before saving to .doc ...
2
votes
0answers
58 views

What are the underlying Windows7 mechanics that are responsible for opening selected files via key 'Enter'?

I need to create a batch script that opens n files, of same type and same suffix, with program p, without creating n instances of p (i. e. use multiple tabs instead of multiple instances). For some ...
2
votes
0answers
342 views

Imagemagick batch converting memory overload

I must to convert about billion of images from jp2 to jpg... I create such .bat for /d %%d in (*) do ( for %%f in ("%%~d\*.jp2") do ( convert -limit memory 0 -limit map 0 "%%~ff" -quality 25 "%...
2
votes
0answers
568 views

Refresh Domain Credentials Cache via command-line

Is there a way to refresh the cache a domain-computer keeps to store domain passwords? I have a PC that is infrequently on the network, and the occasion happens where I would like the manually update ...
2
votes
0answers
367 views

Run shutdown script as Administrator on Windows XP

I've written a script using Ninite Pro to update the installed Applications on the Windows XP pro Client. Unfortunately it has no administrator privileges, is there a way to run a shutdown script as ...
2
votes
0answers
127 views

Skype audio device batch file

I need to create a .bat that will change my Skype mic input to a virtual audio cable and the speakers output to a different virtual audio cable, and it cannot affect the Windows default devices in any ...
1
vote
0answers
14 views

Matching filenames of different types, mirroring file structure, batch renaming

Ok, I have been searching for a way to do this for sometime. Here we go: I'm a DJ - I use .MP3 for personal listening, .WAV for performances. I get a song in .mp3 format, clean the file name to "...
1
vote
0answers
11 views

Prevent PC from sleeping while running Photoshop batch

I'm running Windows 10 and latest version of Photoshop CC. I started a long running batch and I assumed Photoshop would keep the computer awake, but apparently it doesn't. Is there a setting in ...
1
vote
0answers
35 views

Mkvmerge batch for change default audio

I want to change the default audio of my files but there are too many. How can I do it with cmd or bat file? This is my code for one file: "C:/Program Files/MKVToolNix\mkvmerge.exe" --ui-language ...
1
vote
0answers
14 views

how can I get a Batch File to Delete a folder if it doesnt contain a specific file

Hi I'm new here and was hoping someone can help me with a problem I have. Over the years I have acquired a number of ebooks (several thousand). So I have decided to only keep my mobi and Epub books. ...
1
vote
0answers
27 views

How do I edit / create a new batch script to setup a bulk download from a series of links (with script)

A few weeks ago, I posted this question and got a wonderful answer. I tried to apply the same techniques used to the following set of code for another website, but failed. The command prompt window ...
1
vote
0answers
17 views

WMIC Fails When Connecting to Computer with Multiple IP Addresses

I am trying to run a restart script against a list of computers, where it uses WMIC to see if users are logged in: WMIC /NODE: "workstation_name" COMPUTERSYSTEM GET USERNAME and then use psshutdown if ...
1
vote
0answers
33 views

Java runs in batch but not Powershell

I have a batch file that runs a jar with a few parameters, works fine: @echo off java -cp bulkconfig.020.0005.jar com.hospira.bulkconfig.LoadConfig %* I would like to add some more cababilities ...
1
vote
0answers
46 views

Controlling encoding of redirected win console command output

Here is what I want to do: Redirecting properly the output of console applications (I use the term command in the rest of the message) into a file with 1252 encoding (to make it readable from any ...
1
vote
0answers
35 views

Having a message box used as a variable in batch program

I am attempting to have a batch program pop-up with yes or no options and depending what the user clicks will determine what the program will do. for example: @echo off Echo x=msgbox^("Yes or No?",...
1
vote
0answers
130 views

Logon Script with net use * /delete /yes

I'm trying to get rid of all manually mapped network drives on all workstations in my domain. I want our end-user's mapped drives to be mapped solely via GPO (GPO's are already in place). I'm trying ...
1
vote
0answers
18 views

How to batch delete files based on their checksum matching an existing list of checksums

I'm looking for a means of deleting files based on their checksum matching a list of previously seen checksums in a text file or some other list. The context is a large photo organization project ...
1
vote
0answers
29 views

Auto Sort files from one folder to another

I am looking to create a folder that whenever a file(s) is placed into it, a batch file is triggered to properly place the file(s) in the correct folder(s) based on aspects of the filename (similar to ...
1
vote
0answers
303 views

Configuring Windows 8/8.1/10 File History via command line

tl;dr: Is there a way to configure windows 8 file history via unattended command-line/some script? long story: I'm configuring a lot of stand-alone (non-domain) PCs and I think some backup is better ...
1
vote
0answers
28 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 +ñ+...
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 ...
1
vote
0answers
178 views

Schedule a batch to ping at system startup and check if it's running from task manager

using system scheduler on win 2012R2 I would run the following bat file: echo %DATE%_%TIME% >> C:\test\testschedule.txt timeout /T 300 /NOBREAK start ping 8.8.8.8 -t start ping 208.67.222....
1
vote
0answers
134 views

Run PhantomJS by batch

I got a question regarding creating a batch file that calls the phantomjs application and use two files. Overview of files: phantomjs application in: I:/path/to/my/file/test/phantomjs phantomjs ...
1
vote
0answers
219 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. ...
1
vote
0answers
246 views

Delete all files and folders in a specific directory older than 1 day except one folder with bat file using forfiles

I want to delete all folders, subfolders and files older than ome day in a specific directory and leave one folder untouched with the forfiles like the command below: forfiles /p "C:\path\tocheck" /s ...
1
vote
0answers
40 views

Delete parts of sequential files in folders in windows

I need to find a way to delete parts of sequences of files. For example in specific folder I have several subfolders, which contain: blabla_0001.jpg blabla_0002.jpg blabla_0003.jpg blabla_0004.jpg ...
1
vote
0answers
124 views

schtask Activate task when specific user login

I want to create a batch file that creates a scheduled task to run a .cmd file when a specific user logons. So far I've come up with this: @echo off schtasks /CREATE /RU %username% /TN "TaskName" /TR ...
1
vote
0answers
53 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 ...
1
vote
0answers
158 views

WIX: Run batch file based on checkbox value with admin right

I created a installer using WIX. However, after installing the software, I have a checkbox asking the user whether to run a batch file or not. If the user check the checkbox, the batch file will run. ...
1
vote
0answers
747 views

Using batch to automate manage-bde

We would like to encrypt C (full disk) specifying a startup password (we are ok with this in plain text, it's temporary) and simply backup the recovery key to the desktop. So far what's working is ...
1
vote
0answers
28 views

move filename bar.filename, without mentioning filename twice?

How do I move filename to bar.filename without mentioning filename twice? In Bash I can just do: mv {,bar.}filename. I suppose I could do: set filename="foobar" && mv "%filename%" "bar.%...
1
vote
0answers
198 views

Batch metadata and text extraction of pdf files

I have a set of PDF files, all of which contain text. However, some of these files were somehow not created properly; the selectable text is not searchable or convertible to plain text (the resulting ...
1
vote
0answers
344 views

Automatically run executable files with third party program/script in Windows

It is possible to launch an exe file using a third party program through the context menu. My problem is that an exe file might be triggered by a script or by another application on which I don't ...
1
vote
0answers
227 views

Batch File to upload via FTP - 550 Permission Denied

I am trying to create a batch file that will upload a single file by FTP every time it is ran. Everything looks good in windows cmd. I get past the authentication of user name and password and after ...
1
vote
0answers
77 views

Mac Terminal Renaming Bulk files Randomly

I have googled and looked on here but nothing is as basic as I want it. Whats the best way to rename a folder of both .jpg and .JPG files to a random number - I have 250 images and I randomly want ...
1
vote
0answers
203 views

How to generate URLs to shared files in my google drive in batch? How about create Qualtrics surveys in batch?

I have about 200 images uploaded in my google drive, and I want their URLs. I can, of course, manually click "share" for each one of them to get their URLs then paste them in a text file myself, but I ...
1
vote
0answers
232 views

Appending filename and path in Batch file

I'm having a hard time learning how to use command lines and the using batch files. What I want to do is write a custom path and then add the filename so that the output could be saved there. This ...
1
vote
0answers
96 views

Applications and .bat script get locked in Windows 7 for some minutes

I am playing around with Windows batch scripts and simple C++ applications on a Windows7 64Bit PC. The problem I am facing is that I cannot modify neither the batchfile nor the mingw-exe for minutes ...
1
vote
0answers
291 views

Batch file to boot to desktop on Windows 8?

I wanted to put a batch file that runs explorer.exe on a scheduled task so it would run every time I log on and boot me right to the desktop. I know there's 3rd party programs that do this and so does ...
1
vote
0answers
25 views

Simulating errorlevel

My command takes long to run but I expect that it can finish with error and I want fail fast in the batch loop in this case. How do I produce the error level? I tried a batch file with exit 1. But, ...
1
vote
0answers
457 views

How do I make this DWORD value entry in regedit using batch file?

How do I create this DWORD value using a batch file? Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION\ Value: mybrowser.exe Data: ...
1
vote
0answers
2k views

Running Batch file from servers network share - using servers local user account

I am trying to create a script that could be run from servers network share and promt me to type servers local username and password as credentials. So, .bat file is located at \SERVER\INSTALL\...
1
vote
0answers
63 views

Large job Print automation

I regularly need to print documents off to send to a list of people. Each person n needs: The nth page from a Word Document All pages of an Excel Document (same document for every person) All ...
1
vote
0answers
90 views

Batch window's colors are screwd up by Node.js and related commandline services

I run node.js from a batch file and whenever some command that has colorful output it screws up my batch window's default colors. ^ Here it's debug that does it, but any command that has colored ...
1
vote
0answers
82 views

Can I perform different actions in a windows batch file based on the most recent version of a program installed?

Some of our computers run multiple versions of Microsoft Access (97 & 2010) while others run 365. For the pcs running multiple versions, the default is set to 97. I have a batch file that is ...
1
vote
0answers
440 views

Nested environment variable does not expanded

I can't explain the below strange issue. I have two system variables: PYTHONHOME = D:\Tools\ISDC_Tools\Scripting\Python.2.7 PYTHONPATH = %PYTHONHOME%;%PYTHONHOME%\Lib After creating a new cmd ...
1
vote
0answers
99 views

Trying to create a lock system

I've been trying to create a locking system just to help deepen my understanding of batch files. To clear things up, this isn't supposed to be very complex or even practical. This is just more of ...
1
vote
0answers
1k views

Windows batch “rmdir /s /q” empty a folder but it is still there (but 0KB) and can't access

I use Windows 7 x64. I have a svn checkout Working folder, say "Working". When I use a batch file or just open CMD, I did del "%currPath%\Working" /s /f /q rmdir "%currPath%\Working" /s /q The ...