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
23 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
34 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
22 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
88 views

Starting Programs in a Specific Virtual Desktop

When I boot my laptop, I'd like to have two programs open, A and B. I can do this using the startup folder, but I'd like to open A in my first desktop and B in my second desktop. Is this possible in ...
2
votes
0answers
57 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
333 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
549 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
361 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
126 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
35 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
13 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
21 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
163 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
24 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
30 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
141 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 ...
1
vote
0answers
116 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
191 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
211 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
96 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
49 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
137 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
651 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%" ...
1
vote
0answers
185 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
297 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
220 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
74 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
185 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
216 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
93 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
289 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
441 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
150 views

sending keypresses to a process using nircmd

I'm trying to use nircmdc to send a keypress to a background process (without bringing it to front). More precisely, i'm tring to send Ctrl+Shift+S to notepad++.exe: nircmdc win postmsg process ...
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 ...
1
vote
0answers
61 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
88 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
81 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
425 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
98 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
395 views

Task doesn't complete if it is run by System (so it's hidden)

I'm making an application using Python to parse a webpage. For reference, this is the program's code: import csv from selenium import webdriver from selenium.webdriver.common.keys import Keys import ...
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 ...
1
vote
0answers
303 views

Able to auto-login but some commands in text file are not executing in SSH

How can I access the password for mvslogin.sh in putty. I am using below commands in a batch file: C:\Users\pathaanj\Desktop\plink.exe -ssh tpcvld01 -l lz87t1 -pw automate_12 < ...
1
vote
0answers
603 views

netsh suddenly stopped working - now cannot load IFMON.DLL

The following commands recently stopped working on my system netsh interface ip add dns name="Wireless Network Connection" addr=8.8.4.4 index=1 netsh interface ip add dns name="Wireless Network ...
1
vote
0answers
726 views

Script working but throwing 'The syntax of the command is incorrect.' error

I am trying to use this script here: http://www.logaans-site.co.uk/2009/10/17/simpler-version-of-the-7-zip-backup/, it works but is throwing a "The syntax of the command is incorrect. " message. Can ...
1
vote
0answers
1k views

Batch Avidemux - What am I doing wrong?

I'm trying to make a batch file that runs through a set of mkv files and hardsubs the embedded subtitles into outputted mp4 files, using Avidemux and MKVToolNix. Here is my batch file: set ...
1
vote
0answers
62 views

Test my RAID 0 with a cache ssd attached using checksums?

I was hoping to use a ram drive to store a randomly generated file that is written to the raid 0 array, and then read, and checksum is verified against what's on the ram drive. Lather, rinse, repeat. ...
1
vote
0answers
766 views

Bat file to change group policy

Based on the answer to this question: Windows XP: is it possible to log startup and shutdown times in the system event log? I want to be able to add it to a batch file, but have no idea how to go ...