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

2
votes
3answers
2k views

How to get date value in commandline

I need to do a command that takes yesterday date and builds it into a file path like this: copy "Something 2010-12-06\*.zip" "d:\Copy\" where 2010-12-6 is yesterday's date in format yyyy-mm-dd. ...
2
votes
2answers
871 views

batch convert htm files to pdf

What applications allow the user to batch convert HTM files into PDF?
1
vote
2answers
178 views

Batch Capture incoming Netstat IPs as variable

I'm trying to figure out if there is a way I can capture (and if possible, log) the ip addresses displayed from 'netstat' command. I'm trying to make a script that waits for a ping from a specific ...
1
vote
1answer
207 views

Mac OSX Text to Speech Batch

I have 300 English text files that I want to make into mp3 files to listen to as and when. Is there a free program or automator script that I could use so that my Mac will batch text to speech the ...
1
vote
1answer
445 views

How to batch rename files in Mac OS X?

I have the bunch of files that have names like MOV001.mpg, MOV002.mpg etc. They all have different date-time. How can I rename them so they turn into 2012 08 05 13 45 33 MOV001.mpg, 2012 09 02 23 ...
1
vote
1answer
3k views

How can I recognize a running batch file in task manager?

I run a few batch files as SYSTEM (as services) and they appear as cmd.exe in tasklist. Sometimes I need to terminate one of them but I cannot decide which cmd.exe to terminate. Plus; I run many ...
1
vote
2answers
7k views

Command to run an application with Administrator privileges but NOT AS Administrator (prompt with UAC)

I want to start notepad with elevated privileges to edit C:\Windows\System32\drivers\etc\host. Notmally I would type notepad in the search box, and with the program highlighted hot ctrl-shift-enter, ...
1
vote
5answers
815 views

Batch convert divx to iPhone format

I am looking for free software to do batch conversions of divx video files to iPhone format. I have read the thread: http://superuser.com/questions/5784/looking-to-convert-video-to-iphone-format ...
5
votes
2answers
7k views

How to delete Chrome temp data (history, cookies, cache) using command line

On Windows 7, I tried running this script but still cannot clear Chrome temp data. Can someone figure out what's wrong with the script? Where do Chrome store history and cache ? Thanks ECHO ...
5
votes
4answers
30k views

Why does 'ping' returns 'request timed out' for some hosts?

For some hosts, ping www.example.com it resolves their IP but why does it fails with request time out? I have also tried to increase the ping response time but still the same result.
4
votes
1answer
405 views

how to copy I/O not just redirect (Windows and Linux)

I have a simple call command call calabash -D sim.xpl >test.txt 2>&1 and this redirects into test.txt, how do I do both redirect into a file and allow it to show up in the prompt? (I ...
4
votes
6answers
11k views

Batch file to copy folder structure

I want write a batch file that can copy a folder structure. This batch file would copy all folders in the source directory to the destination directory - the files themselves would not be copied. For ...
3
votes
1answer
2k views

Edit windows service to log on as specific user using a batch script

I have several programs that are installed as a service. By default, after installation, the service runs as Local System Account. I can change it through services.msc, service properties to the ...
3
votes
7answers
10k 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 ...
3
votes
2answers
2k views

Why do .bat scripts get locked after execution in Windows 7?

Ever since I moved to Windows 7, whenever I am am developing a .bat script I have exactly one chance to get it right. As soon as I execute the script, it becomes locked by an unknown process even if ...
3
votes
1answer
13k views

Change NIC speed/duplex settings in script?

I have a laptop running Windows Server 2003 SP2, with PowerShell installed. Occasionally, this system has to be used in environments where it needs the NIC manually set to 100 Mbps/Full Duplex in ...
3
votes
3answers
3k views

How to change the extension of all selected files at once?

Its possible to rename files all at once. But its not possible to change the extension of selected files all at once. If windows doesn't support this facility .. then is there any batch script or ...
2
votes
2answers
4k views

How to create multiple folders and name them by reading lines from text file?

I have a plain text file named Export.txt. It contains a list of geographical places, preceeded by a 3 digit number with leading zeros. Example --START OF FILE-- 001 Aberdeen 002 Bellevue 003 Camas ...
2
votes
6answers
4k views

How to perform wildcard string comparison in batch file

My batch file writes a list of files on screen where it contains the .cs extension for /F "usebackq delims=" %%A in (`cleartool ls -rec ^| find /V "Rule:" ^| find /V "hijacked" ^| find /V "eclipsed" ...
2
votes
2answers
3k views

batch - File last modification time with seconds

I want to know when a file has been modified for the last time. I can get these infos using the following batch script: FOR %%i IN (myfile) DO SET modif_time=%%~ti The problem is that I need ...
2
votes
2answers
654 views

Can I turn Caps on/of from a batch file in Win 7?

I have a very old program that needs the commands to be all caps. when I exit this program I often forget to put the Caps Lock off (very annoying). I had a batch program in XP that did this but can't ...
2
votes
2answers
148 views

Where are the folder icons generated with the folder properties kept in the Registry?

Right click on a folder and select properties. Select the "Customize"tab. At the bottom select "Change Icon" etc Works very nicely. My question is: Where is this information held in the registry?
2
votes
3answers
1k views

FTP batch file works from command line but not scheduled task

I want a windows scheduled task to execute an ftp batch file which will upload some files to my server. If i run the argument below from the command line then it executes successfully. ftp -i ...
2
votes
1answer
268 views

Import from List - Batch file

Ok here is the scenario. I am trying to figure out a way to copy users' docs and settings (Favorites, My Documents and Desktop) to a network location as a backup for decommissioned drives. My problem ...
2
votes
2answers
601 views

Batch file to poll a folder for new files

I want to write a batch file which is triggered whenever a new file is added to a particular folder. I can schedule a task using schtasks. But I am looking for a solution based upon interrupt kind ...
2
votes
2answers
384 views

installer script for multiple software packages

I will need to package an older java application with it's dependencies on Windows which are quite a lot. I've exported a runnable .jar and got the depending native libraries, but still I need to make ...
2
votes
1answer
119 views

How does the start batch command execute a software by calling only its name? [duplicate]

For example I launch superuser.com via firefox by this command: start firefox http://superuser.com How does "start" know where is my firefox.exe? I guess it reads it from registy (it is not defined ...
2
votes
1answer
256 views

Batch Upscale ISO images

I have most of my DVD collection ripped to ISO (just the movie, not the rest) I have loads of storage space, but an underpowered PC running boxee. I'd like to convert all the ISO images into upscaled ...
2
votes
3answers
7k views

Batch Removing Newline in txt files in Windows Command line (cmd)

There are unnecessary new lines in txt files which i am merging during batch processing. I am thinking fof first removing all new lines and then inserting only one. how can i do that in batch file
1
vote
1answer
58 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
vote
2answers
1k views

How to search and replace a string in multiple text files (within a directory) with Windows CMD? Part 2

This is in relation to this question . Unfortunately, PowerShell scripts are disabled on the system I am working on. I can't even use a simple (Get-Content). I did figure out how to do change ...
1
vote
1answer
500 views

Set environment Path Windows 7

Trying to add stuff to the system environment Path via batch, vbs or anything really. This used to work in a .bat, but has stopped: setx -m path "C:\addtopath;%PATH%" This used to work in VBS, ...
1
vote
1answer
6k views

Batch file script for Enable & disable the “use automatic Configuration Script”

My intention is to create a .bat file that toggles the check box of "use automatic Configuration Script" in Internet Settings. The following is my script @echo OFF setlocal ENABLEEXTENSIONS set ...
1
vote
2answers
697 views

batch command to store a folder name in a file in single line

I have a list of folders in a directory, i need to copy just all the folder name to a file and the file should be in a single line seperated by delims. can any help me with this in a batch file. ...
1
vote
1answer
312 views

Batch image program to replace 2 colors?

I have a lot of .png images, and I want to replace a color to another color.. Is there a batch program to do that? I'm on Windows 7
1
vote
2answers
805 views

Creating separate archives for a set of files

I have directory containing big list of files. I'd like to gzip each file of a certain mask to a separate archive. How do i do that automatically? For example here's sample directory contents: - ...
1
vote
2answers
1k views

How can I batch delete all files of a certain type in a folder newer than a certain date on Windows?

So Google Music decided to download about half of my uploaded music library to my local music library when I told it to download my purchased music, so now I have a bunch of MP3s I need to delete ...
1
vote
2answers
281 views

Remotely running batches on a Windows PC

I want to remotely control my home desktop PC (running Windows 7 Professional), mainly to perform the following tasks: Downloading email attachments, and sending emails with attachments Running ...
1
vote
2answers
5k views

(Batch) convert a BMP to a PNG with transparency

I have +- 500 .bmp's that I would like to convert to .png's. It would be especially nice if the color white (#FFFFFF) of the original BMP's could be converted to transparent in the .png's. PNG-8 is ...
1
vote
2answers
1k views

CMD MOVE can't replace directories in WIN 7

The MOVE command does not work when to ovewrite a directory. I have also tryed to run cmd with admin rights. I'm posting this question with more info so you can easily test it self. Make your own ...
1
vote
2answers
208 views

Cluster advice - batch instructions

I'm setting up a small cluster of 20 machines that will have to run a batch command. The batch will have some instructions then run a Java program that will crunch data for about 2h then return the ...
1
vote
3answers
1k views

How do I set up a desktop shortcut to a batch file which will run as administrator

I want the batch file to run and launch some programs, all of which need to be at administrator level.
0
votes
1answer
80 views

How to associate a file extension to be opened with a batch script?

I want to get rid of OSPPSVC (Office Software Protection Platform Service). Then, I have replaced the links to open Office programs with a link to launcher.bat: @echo off title Launching Office... ...
0
votes
1answer
71 views

Is there a command that allows me to set a prefered IP Address for an adapter? [duplicate]

I've got some customers who should use a specific IP in their network adapter, but manually setting it is a pain sometimes. So I would like to know if there's a shell command / batch that allows me to ...
0
votes
1answer
178 views

Build a user's profile directory on creation in batch

I have a batch script that I use when I set up new Windows 7 PCs that creates a user based on a variable, creates a folder on their desktop, then shares it: @echo off SET /p unitnumber="Enter ...
0
votes
1answer
2k views

How do I use a batch file to recursively replace a string in files?

In my SQL files, I have hardcoded the C:\ directory into all the output file paths, but there are times where the client wants to have the outputs stored on E:\, for example. How do I go about doing ...
0
votes
0answers
1k views

.bat runs from command line but not when scheduled

I've got a 1-line batch file that runs a pantaho etl job. It works fine when I run it from command line or gui, but the process doesn't even start when it's scheduled. I have the following settings: ...
0
votes
2answers
4k views

pscp is not recognized as an internal or external command error

I have a batch file with a query like pscp .... written in it. When i try to run that file an error pops up saying pscp is not recognized as an internal or external command, operable program or a ...
0
votes
1answer
8k views

Batch file to copy files from desktop location to another location?

I want to Copy/Move files in Windows XP from Desktop(a Folder) to My Document(another Folder), which was created by same Batch File on Current Date in Format DD/MM/YYYY. This is working fine when ...
0
votes
2answers
83 views

Batch File Transfer addon

I made a Batch file that allows me to move files to one hard drive to the next hard drive. There is just one thing I would like to add to it. I want the CMD to prompt me to what user account its ...