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

9
votes
4answers
7k views

Batch remove comments from PDF files

How can I easily remove all comments and annotations (added with Foxit Reader) from all the PDFs in a folder?
0
votes
0answers
743 views

Problem with running batch file as scheduled task

I am trying to setup my rsync script to run automatically. It uses a key file for authetnication so there is no issue of missin ginput or something. I have user a. In user a's profile live a batch ...
22
votes
8answers
17k views

How to run commands as in a queue

I need to do a lot of copying of various files to various folders. I can add all my copy commands to a bash script and then run that, but then I must wait until it finishes if I want to add more ...
2
votes
3answers
3k 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. ...
1
vote
1answer
6k views

Write Ping results to a text file

This should be pretty simple but for some reason, my situation is proving to be a bit tricky... I want to save the results of a ping to a text file. To do so, I am using the following command in a ....
0
votes
2answers
334 views

How I can provide list of the file in my directory?

Hi I need a batch file that provides a list of all of my files in my folder that are separated with a ";" in one file. Like list of my directory: dir1 dir2 a.txt b.sql c.html Export file ...
0
votes
2answers
11k views

How to run bat file in background? [duplicate]

Possible Duplicate: Run a completly hidden batch file I have a bat file that open a window and show a lot of information, which bother me a lot. How could I run the bat file in background?
6
votes
4answers
11k views

Batch File Printing

I have a user that has to print out about 220 documents averaging 2-3 pages each. When printed using the standard Windows method of Select All - Right-click - Print it overwhelms either the print ...
1
vote
2answers
194 views

Single File Archive+Copy+Extract Deployment for PC

I've got some files on a machine that need to be archived, then copied over to another machine. On the other machine I need the files in a folder to be archived and removed, and then have the new ...
7
votes
7answers
40k views

How to stop a bat process on Windows?

I have BAT file running in background on Windows which lasts about ten minutes. Now I want to stop it while it's running, but I can't find its name in the process-list in the task manager. So how can ...
7
votes
3answers
873 views

Quickest way to reduce ~400 images to .05% of original size

I have around 400 images that are taken from a 8 megapixel camera. I want to reduce the image size to around 4k pixels. What is the fastest way to do this, I have access to both windows and linux ...
2
votes
2answers
8k views

Script to run all SQL files in a particular folder

Can anyone help me write a script to run all of the SQL files in a particular folder? I need to deploy a bunch of Stored Procedures and I want to deploy them all at once without having to manually ...
1
vote
2answers
2k views

Batch file - start program with admin rights

I have a .bat file in my startup folder: d: cd\ cd TrueCrypt truecrypt /ll /p "" /q /v d:\MYO Is there a way to start TrueCrypt with admin right?
5
votes
2answers
12k views

Batch script: how to check for admin rights

How do I check if the current batch script has admin rights? I know how to make it call itself with runas but not how to check for admin rights. The only solutions I've seen are crude hack jobs.
5
votes
4answers
9k views

Which free software can I use to deskew scanned images

I've scanned about 100 documents, so I have a folder with 100 jpg images, but they are rotated by the angle up to 15 degrees. Is there any free simple to use software I can use to rotate them to the ...
4
votes
6answers
17k views

Batch Convert OpenOffice (ODT) to MS Word (DOC) files?

I have a directory full of OpenOffice.org odt files that I'd like to batch-convert to doc files. Is there an easy way to do this? (bonus points if your answer uses OpenOffice and a Linux command-...
3
votes
2answers
5k views

Batch “resize” JPEG images to a fixed file size

Changing quality of the JPEG when saving an image, changes the file size. For eg. I have the following image. Dimension: 243px x 53 px Quality:100% File Size:9.7kb Background: If I edit the image,...
4
votes
1answer
537 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 ...
3
votes
2answers
1k views

Increment one value in a text line, using script

I have a text file as input. I need to filter that through some program, SED, AWK, whatever, where i need to increment a value in a particular line every time i run the script. What's the best way ...
1
vote
1answer
3k views

script or batch move files from multiple sub directories to parent [duplicate]

Possible Duplicate: merging all files into one folder from different folders Hello all, I have a similar issue to this post http://superuser.com/questions/180573/move-files-from-multiple-...
6
votes
4answers
17k views

How to execute a scheduled task with “schtasks” without opening a new command line window?

I have a batch file that creates a scheduled task using schtasks like this: schtasks /create /tn my_task_name /tr "...\my_path\my_task.bat" /sc daily ...
2
votes
1answer
497 views

CLI: batch file rename — with CONTENT ?? (e.g. specific text mentioned in file)

I would like to batch rename files (*.txt) by inserting a number of the format 'RXR1234567' (RXR+7digits) [if such number (and ideally only one) is found in the text] at the front of the filename, e.g....
1
vote
2answers
244 views

How to determine the name of a file extracted from a zip archive via a batch script

Background I have a batch file on Windows XP which takes one argument: a zip file name that was created with 7-zip. This file contains a single MySQL backup file inside: backup.sql. I would like to ...
51
votes
2answers
90k views

How to check the exit code of the last command in batch file?

Inside a batch file on Windows, I use 7-zip like this: ...\right_path\7z a output_file_name.zip file_to_be_compressed How could I check the exit code of 7z and take the appropriate action ?
18
votes
4answers
7k views

How to disable the output of 7-Zip?

I use 7-Zip to compress files inside a batch file like this: ...\right_path\7z a output_file_name.zip file_to_be_compressed I got the following output: 7-Zip 4.65 Copyright (c) 1999-2009 Igor ...
0
votes
2answers
2k views

Batch convert PDF versions?

Does anyone know of a (free, Windows) way to convert/change the version numbers of a batch of PDF files? A command line tool would be ideal, since it can automated rather easily, but the only ones I'...
3
votes
3answers
4k views

Batch convert videos from MPG to AVI

I have a few hundred short MPEG files (each ~10 seconds) that I need to batch convert to AVI. What would be the best way to do this? I've tried using WinFF but the quality was very subpar.
0
votes
1answer
1k views

How do I use built-in extract feature in Windows explorer from the command line?

How do I use built-in extract feature in Windows explorer from the command line? I can't install any third party compression tools such as WinZIP, WinRAR or 7Zip. I just need this to work on Windows ...
14
votes
10answers
71k views

Why won't cmd exit after execution of batch file?

Why won't cmd exit after execution of batch file? I have tried: "C:\Program Files (x86)\Java\jre6\bin\javaw.exe" -Xmx1024M -Xms1024M -jar Jilko.jar and @echo off "C:\Program Files (x86)\Java\jre6\...
0
votes
2answers
5k views

How to launch shortcuts to a Virtual PC “XP Mode” application in a batch … successively?

First of all, I'm French, so forgive me my English (the dictionary is my friend) ... Here is my problem : I have some trouble with a batch file to launch two virtual applications successively ... ...
2
votes
2answers
2k views

Clear Recycler on C: with Command Line

I'm looking for a simple Batch which clears all files/folders in my Recycler on Volume C: and under Windows 7 x64. DEL C:\Recycler\*.* I thought this is a good try, but no success. The way over ...
0
votes
3answers
5k views

Set TEMP & TMP on Current User through Batch File?

I am in an IT lock-down situation so I have limited access to things. I am trying to run the latest version of Portable Google Chrome 6. It won't let me install extensions and I think it's because I ...
24
votes
11answers
93k views

Populating Array in DOS Batch Script

How can I setup an array variable in a DOS batch script? I would like to load it with a list of file names to process. I really would like to keep this as simple as possible. Thank you.
1
vote
1answer
405 views

Batch AVI encoding (xVid/mp3)

I'm looking for some way to batch-encode Uncompressed AVI (with PCM audio) videos recorded with my digital camera. I've been using VirtualDub, but I can't find an automated/batch way to do it. I ...
0
votes
2answers
165 views

Multiple directory file operations

In windows, I would like to use some sort of batch file to unzip files on multiple directory at once. For example : Initial directory --Foo1 ----file1.zip --Foo2 ----Foo2.zip ...
2
votes
2answers
3k views

Batch script to batch rename files or use a tool? [duplicate]

Possible Duplicate: How can I mass rename files from the command line? i have some folders of files i want to rename. the general structure of the file is /root /module 1 /chapter ...
3
votes
3answers
6k views

on Windows XP, how can I remove (NOT hide) a system tray icon without closing the process?

So I leave uTorrent running on the system tray when I go to work, but every time my brother gets on the pc he closes it. So by the time I get back I've lost 7-8 hours of download. Most infuriating. I ...
3
votes
2answers
4k views

How do I add “edit” or “open with” to the context menu for .bat files in Windows Explorer in Windows 7?

I've tried this by mucking around with "Set Associations", but all I've accomplished there is messing up the default Open action. I've also found a bunch of registry scripts attached to random forum ...
5
votes
1answer
403 views

How to prevent command line wildcard processor from evaluating short file names

I'm developing a batch file within which I'm using the following pattern: *.res I want to select all files with the extension .res, but this pattern is matching files with an extension of .resources ...
2
votes
2answers
1k views

Is there a program to reboot to safe mode

I'm looking for something like Bootsafe but with option to be run silently. Anyone aware of such utility or any special command to be run?
1
vote
1answer
65 views

Trouble with macros

Recently, at work, the program that we have used for years has drastically changed and all of our old file types are no longer supported. This has left us completely out in the cold as to how we can ...
1
vote
4answers
1k views

I want to have a batch file which run a executable file,but write some commands automatically

I want to have a batch file which run a executable file(Test.exe). when test.exe is called it would open a command prompt environment.On this stage i want that some defined command(s) automatically be ...
1
vote
2answers
697 views

issue on EPSON printer (Dot Matrix Printer)…?

our EPSON-DOT MATRIX printer. not printing on DOS command Type text.txt>prn text.txt file..?? But - it prints on open TEXT.txt>File>Print - it works perfectly.
1
vote
0answers
714 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 ...
0
votes
1answer
204 views

Program in batch file reading old version of newly altered file (XP)

I have a normal batch file, running on XP. First, program A apends data (a string) to the end of file X.dll (on the server). Then program B opens the file, and looks for the data. However, sometimes (...
0
votes
1answer
8k views

run exe format in batch file

I want to make a batch file,which run 3 executable file respectively: A.exe B.exe C.exe P.S: A.exe gotta finish its job then batch file go for B.exe and finally C.exe
1
vote
1answer
3k views

.bat file: only the first line is being executed - why?

I have the first .bat file, down.bat, for downloading movie trailers from apple.com: C:\wget.exe -U "QuickTime/7.6.2" %1 And I also have this second file, batch.bat with all the trailers I want to ...
2
votes
2answers
287 views

Script or util to remove old backups

I'm creating a backup strategy for a sharepoint server I'm setting up. Have got a backup running daily. In the long term I'd like to keep: Daily backups for the last week. Weekly backups for the ...
22
votes
8answers
10k views

Determine if command is recognized in a batch file

I'm writing a bat script in which I invoke a program (such as javac). For simplicity, I want to check if the command exists before I run it. i.e. If the command exists in PATH. For example, if (...
3
votes
3answers
2k views

How to delete gpg secret keys by force, without fingerprint?

It's accident generated a bulk of secret keys (without public key) in the GPG key ring, and I have written a script to delete those keys, but GPG doesn't allow me to do that: $ gpg --batch --yes --...