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

3
votes
0answers
4k views

Forfiles command does not work for Windows XP

I have a Batch script with "forfiles" command which is ignored when I execute it. I thought the reason is in the system (I have windows XP) which commonly does not have forfiles.exe installed. I ...
2
votes
0answers
238 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
104 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

How do i add command to my batch file to go get a screen shot of a webpage and return and save to my desktop?

I'm just learning about batch files and such, and I have been googling round and round trying to find how to create a batch file with a command that will go to my youtube page link and take a ...
1
vote
0answers
16 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
64 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
37 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
31 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
35 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
49 views

Dir and Findstr commands taking a long time to complete in Batch File

dir %DRIVE_NAME%: /S /C /A-D /Q /T:C | findstr ".zip$ .doc$ .xls$ .xpt$ .cpt$ .cpo$ .xlsx$ .pdf$ .dat$ .txt$ .docx$ .csv$" >> file.info I am using above command to list all information in ...
1
vote
0answers
79 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
46 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
82 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
447 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
750 views

Launch Minecraft 1.7.2 From Batch File and change Username

Near the start of the year I made a series of little batch scripts allowing people to run minecraft off of their usbs and not leave anything on the computer (symlink from %appdata%/.minecraft to ...
1
vote
0answers
192 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
302 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
326 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
239 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 ...
1
vote
0answers
503 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
54 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
510 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 ...
1
vote
0answers
501 views

How to grant domain user access to network share via batch file?

I am trying to grant access rights to a domain user in a batch file like this: net share sharename=c:\dir /GRANT:\domain\username,FULL But it fails. I can only grant rights to local users. Is there ...
1
vote
0answers
301 views

Downloading a file from multiple FTP's via excel/command prompt

I have a huge list of ip's which point to a text file I need to download. There is about 500 text files and the text filename is the same, data.txt. My initial thought was to use a macro to get the ...
1
vote
0answers
274 views

Removing unwanted tags from picasa

Before Picasa added its face finding feature I had tagged a lot of photos with names of people. Now I want to remove all these tags is there any easy way to view all teh tags currently in use by ...
1
vote
0answers
339 views

Refreshing Crystal Reports through Excel Macro

At work we have an ancient Ingress database that wont allow me to make links between tables using the SQL Query editor in Excel 2007. My current solution is to generate the data in Crystal Reports, ...
1
vote
0answers
316 views

Auto rename files through excel sheet or through folder of these files

I have excel sheets with lot of files names like.. I want to renames all files through excel sheet and renames files itself.. Or 2nd condition is , if i rename files my self and rename in excel sheet ...
1
vote
0answers
97 views

Windows: Add samba printer at each logon

All, I currently have a samba printer shared at \\%ServerIP%\Printer1 which requires credentials to connect. Users can easily add the printer with the printer wizard. However, the printer will stop ...
1
vote
0answers
859 views

How to audit “all file failures” on a system partition from command line

Directly from the source: Open Windows Explorer and use the file and folder properties function to verify that the audit settings on each partition/drive is configured to audit all "failures" ...
1
vote
0answers
688 views

Windows batch file: rename files (possibly in multiple folders) based on input file (of target filenames)

I am a Batch-newbie... This "tool" is to automate the slimming down of Windows (XP) by disabling certain system driver, DLL and EXE files. Instead of outright deletion, I wish to rename-in-place, ...
1
vote
0answers
418 views

How to batch print multiple e-mails into one single PDF with one click on Windows 7?

I use the e-mail software "Postbox 2" and I won't switch this so fast, as I have like 7000 e-mails in my GoogleMail account, which is the main account I want to print the e-mails from. I'm going ...
1
vote
0answers
630 views

Gimp batch processing on the Mac?

I am looking for a way to batch apply auto-brightness, auto-contrast, and a dash of colour correction to a pile of images with Gimp. I found a the David's Batch Processor (DBP) plugin but can't ...
1
vote
0answers
650 views

Retrieving a registry variable in a batch script

I wish to write a batch script (windows XP) that extracts certain installation paths from the registry. How would one go about writing such a script? I have written the following - I am (as you ...
0
votes
0answers
11 views

Batch removal of watermark from a pdf using pdftk

Is there any script available or possible to remove a specific and a very large watermark using python. How to remove watermark from pdf using pdftk? I followed everything in the above link but i've ...
0
votes
0answers
21 views

Batch replace non-ASCII characters in filenames

I'm looking for a shell script that will recursively replace non-ASCI characters with underscore or just remove them. The issue is that a drive with files, created on Linux, has to be used on ...
0
votes
0answers
7 views

Handle.exe creates Handle64.exe & hangs thereafter

On windows server 2008 R2 ,In a folder I have handle.exe along with psexec.exe and a batch file name test.bat with following content: psexec -s D:\data\handle.exe -p taskhost.exe > ...
0
votes
0answers
28 views

windows 7 batch file change desktop background

i want to write a batch file that changes the desktop background this is what i have reg add "HKCU\Control Panel\Desktop" /v Wallpaper /f /t REG_SZ /d c:\j2Global\backgroundDefault.jpg reg ...
0
votes
0answers
23 views

Automating SMTP Configuration

The following is an excerpt from a series of instructions I am following as a list of company procedures they would like me to automate. Is the following achievable through command line/batch, and if ...
0
votes
0answers
32 views

How to automate software registration via batch or script

We use a program called vspace created by ncomputing. This allows for example 4 stations on a single host machine. So, each time this is installed we have to fill out the registration form which pops ...
0
votes
0answers
8 views

Batch file to add specific string in a XML file and zip it to TAR afterwards

To start, I'm not a real hardcore programmer so bear with me. I searched the web for help and I got already some steps further to completion. What I'm missing, how to add a specific line after ...
0
votes
0answers
24 views

Using a .bat file to pull a string from a text file within a zip folder

So, please bear with me. This is only the second batch file I've ever written and my first post anywhere on StackExchange. I'm writing a batch file that tells a remote server to run HP Array ...
0
votes
0answers
43 views

Managing windows updates via Batch file

I have an instance of windows server 2012 and I am trying to get an idea of how to accomplish the following requirements via a batch file. Turn Windows Update to manual Change Import Updates to the ...
0
votes
0answers
18 views

Batch file with (Java invocation) wildcard expansion works on one Win 7 machine, fails on another

I'm using a Windows batch file to launch a Java program, using wildcard expansion to set a load of JAR files on the classpath similar to the below: java -cp "MyLibFolder\*" com.stupid.StupidProgram ...
0
votes
0answers
42 views

How to change the Start In property via CMD for an .lnk

Context: I have folders with presentations being created dynamically except currently an instance of our ppt&macro is being dropped in each folder with the presentation. The presentation will only ...
0
votes
0answers
17 views

“Print all” option causes unwanted cropping of .tiff files

I am printing multiple attachments using the "print all" option and .TIFF files are not printing fully, the edges are cut off. How do I prevent the "print all" option from doing this?
0
votes
0answers
33 views

Windows Login Script ignore UAC

I have a GPO that will launch a Startup Script for a .exe(Install Shield) silent unattended setup. However the user is currently being prompted to allow program due to UAC. I want a true unattended ...
0
votes
0answers
17 views

I need a dynamic script for changing Host IPs depending on computer name that I can shoot over the network

Does anyone know how to make a Batch/Script, that I can modify, for looking up the host computer name and build the IP and gateway off of it. we have a simple setup of computer name refers to ...
0
votes
0answers
31 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: ...
0
votes
0answers
13 views

Change a part of a filename with random numbers

In my work i need to rename a filename everytime i want to do a server test, for example SAMO8608157H6AA1D15261.dec, i do need to edit the "1526" part in to the next digit or random number respecting ...
0
votes
0answers
26 views

Batch script to mass rename by modify date

I'm trying to make a batch script to mass rename files by modify date and time of each file. I'm new at this and searching since this morning and nothing lead me in the good way. SHould I use xcopy, ...