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

27
votes
13answers
98k views

Run a completly hidden batch file

I'm looking for some way to run a batch file (.bat) without anything visible to the user (no window, no taskbar name, .etc..). I don't want to use some program to do that, I'm looking for something ...
28
votes
2answers
16k views

How does the Windows RENAME command interpret wildcards?

How does the Windows RENAME (REN) command interpret wildcards? The built in HELP facility is of no help - it doesn't address wildcards at all. The Microsoft technet XP online help isn't much better. ...
54
votes
8answers
132k views

Can you zip a file from the command prompt using ONLY Windows' built-in capability to zip files?

I have a batch file that outputs a text file. I thought it would be nice if I could zip it up too. This will be used in an uncontrolled environment, so I can't make assumptions about the presence of ...
10
votes
3answers
5k views

Can I use the “start” command with spaces in the path?

I have a path like this: Y:\xxx\dd sss\aaa\ccc Y:\ is mapped to an FTP address. Now when I try to use start to open my folder I cannot. Command prompt makes mistake and goes to Y:\xxx\dd folder! I ...
4
votes
3answers
20k views

How to create a shortcut using a batch script? [duplicate]

How can I create a shortcut to the file D:\myfile.extension on the Desktop using a batch script?
7
votes
6answers
19k views

Enable/disable wireless interface in a bat file

Is there a way to enable/disable a wireless network interface via the command line (so I can put it in a bat file)? When I'm in the office I use a wired connection, but Windows still occasionally ...
18
votes
11answers
14k views

How do I batch change the date taken information in EXIF data?

I use F-Spot to manage my images. For one set of images, the dates somehow got messed up and they all are marked as September 1st 2007. I'd like to change the date taken information to a different ...
5
votes
5answers
4k views

How to join MP3 files? [duplicate]

Motivation I'm looking for a program that allows me to join a lot of mp3 files (an audio book) to a single large mp3 file. My mp3 player is able to remember the position inside a track, but it takes ...
45
votes
6answers
52k views

Batch converting PNG to JPG in linux

Does anyone know a good way to batch-convert a bunch of PNGs into JPGs in linux? (I'm using Ubuntu). A png2jpg binary that I could just drop into a shell script would be ideal.
7
votes
2answers
5k views

Programatically associate file extensions with application on Windows

I've just recently reinstalled Windows and in setting up my environment I've noticed that all my associations for the various programming languages I edit in Notepad++ have gone (naturally). I am ...
18
votes
8answers
41k views

How to prevent the command prompt from closing after execution?

My problem is that in Windows, there are command line windows that close immediately after execution. To solve this, I want the default behavior to be that the window is kept open. Normally, this ...
19
votes
8answers
37k views

How do I create a Windows Batch file that does not show the Command Prompt when executed?

I have installed a ruby gem called Redcar, which is launched from the command line. When it runs, it steals the shell until it terminates, so I have to create a new shell window to continue doing ...
2
votes
3answers
2k 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.
3
votes
2answers
3k 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 ...
18
votes
9answers
28k views

Can a mapped network drive be reconnected from the command line?

On a daily basis I find myself in the Windows command prompt needing to access a network drive that is mapped but disconnected. I have yet to find a command that will reconnect this drive without ...
6
votes
8answers
16k views

How to make 7-zip do a whole bunch of folders

I got a bunch of pictures that I had to crop into 800x600 pixels. That was easily done, but now I have to upload them so the family can see them all. Thing is, this is 500MB in pictures. I decided to ...
10
votes
2answers
5k views

Run a batch/cmd upon screensaver

Is there a way to run a .bat or .cmd when the screensaver starts? I've noticed some .exe can run if you rename them to .scr but is that it?
6
votes
1answer
11k views

Set Permanent Environmental Variable in Windows XP

I want to set environmental variables permanently through a batch file. Is there a command to set Permanent Environmental Variable (other than SETX) for Windows XP service pack 3? command SETX ...
4
votes
1answer
9k views

Using Date and Times in a batch file to create a file name

I am running a program from a batch file, which when it is done performs an automatic backup of my MySQL database. I would like the batch file to create a different back up for each run, so I can ...
2
votes
11answers
4k views

How to batch rename files copied from OSX to Windows with ':' in filenames?

This is really puzzling. I have lots of videos that were stored using Mac OS, and now I have to edit them on Windows XP. I copied files using HFSExplorer. Editing software refuses to open the files ...
0
votes
3answers
9k views

Access denied, cmd move windows 7

I can't use this command in win 7 when want to move a directory if the destination exists. It says Access denied. Why hapens this? It worked in XP. move /y "%1" c:\mydir\ I can use robocopy, but ...
3
votes
2answers
11k views

Script to create folders in multiple directories using YYYYMMDD date as the folder name

At work every morning I have to create multiple file folders (using a YYYYMMDD date format as the file folder name) in different directories across our network for various departments. This is a real ...
2
votes
4answers
4k 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 ...
19
votes
10answers
15k views

Renaming many files in Mac OS X, batch processing

I used to rename file in Linux via a rename command: rename 's/old_pattern/new_pattern/g' *glob Is there something similar in Mac OS X (Snow Leopard)?
38
votes
8answers
83k views

How to run a batch file without launching a “command window”?

On WinXP, can I run a batch (.bat or .cmd) file, via a shortcut, without a "black window" ?
22
votes
6answers
156k views

How do I make a batch file wait / sleep for some seconds?

I use a batch file to start up a few of the programs I need running in the background. Up until now, I had used the pause command to execute it after some of the other start-ups finished. I would ...
15
votes
7answers
44k views

Get current folder name by a DOS command?

Is it possible to get the current folder name (not current directory path) by using a DOS command? If so, how? The closest I got was this but it doesn't do it: for /f "delims=\" %%a in ("%CD%") do ...
13
votes
5answers
26k views

Variables in batch file not being set when inside IF?

I have two examples of very simple batch files: Assigning a value to a variable: @echo off set FOO=1 echo FOO: %FOO% pause echo on Which, as expected, results in: FOO: 1 Press any key to ...
14
votes
5answers
30k views

Using Gimp to batch convert images to another format in Windows

As implied by the title, does anybody know how to use the gimp-console-[version].exe program to batch convert images between formats (with default settings) in Windows ?
8
votes
2answers
46k views

Batch file that runs cmd.exe, a command, and then stays open at prompt

I would like to make a batch file that: Opens cmd.exe Within that Command Prompt runs net use to display mapped share paths Leaves the window open so that I can run additional commands if I wish to ...
3
votes
5answers
5k views

Batch convert TIFF images to PDF?

Are there any free utilities that will batch convert TIFF files to PDF? I've tried PDF printers like PrimoPDF & CutePDF, but these seem to require a GUI click to confirm each filename. What I'm ...
3
votes
5answers
3k views

Free batch image watermarking software [closed]

I'm looking for a simple yet effective software to watermark a lot of photos in batch. I have to apply a transparent png watermark image on 400 photos. The program have to place the watermark at a ...
12
votes
4answers
6k views

How to delete files from a folder using a list of file names in windows?

i have a folder with 2K+ files in it, i need to delete around 200, i have a txt file with all the file names i need removed ordered in a list, how do i remove the specific files from the folder using ...
7
votes
3answers
2k 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 ...
3
votes
3answers
2k views

Can I get UAC prompt for user from batch file?

Can I get UAC prompt for user from batch file? For example I need put some keys to registry under CurrentControlSet from batch file by reg import path\to\my.reg PS. runas is not a solution as ...
2
votes
1answer
155 views

How do I get an admin-mode script to run non-admin mode routines

I have an MSBuild script. It is required to run in administrative mode to complete the build. I have a couple of command line utilities that are required to run in user-mode (i.e. non-admins) that I ...
2
votes
1answer
1k views

Mount an ISO from the Command Line and Get its Drive Letter in Windows 8

I am making a batch script which mounts an ISO file and installs an app (VS 2012) from the mounted location like this: K:\Softwares\VS12.iso %DRIVE_LETTER%:\vs_ultimate.exe /passive /norestart But ...
1
vote
4answers
2k views

Batch-Resizing images in OS X to a certain height

How can I resize a batch of images using Automator, so that all images will have a fixed height, e.g. I want to resize all images to be 60px high while width can be anything.
6
votes
4answers
3k views

how do you make a letter password generator in batch?

I'm having a hard time figuring out how to make a password generator with random letters in it. For example, ASWED-ASDWAD-EFEST. So far I can only make random numbers by using the code @echo off ...
4
votes
5answers
7k views

Is it possible to eject a cd in a batch file on Windows XP?

I've seen a few executables/utilities that do it, and many forums that say it is not possible to do. But is there any DOS command that I can rely on in a typical XP installation?
2
votes
2answers
2k views

Download a File in a Batch File [duplicate]

Possible Duplicate: Download a file via HTTP from a script in Windows I've never done any scripting on Windows but now I need to write a batch file that downloads a file off the Internet ...
1
vote
2answers
439 views

using FORFILES in batch to delete tmp and bak files older than a week

I am having issues making this syntax work correctly. What I would like to do is remove all tmp and bak files from the specified directory and all subdirectories if the modified date is older than 7 ...
1
vote
2answers
137 views

Checking unique files in Windows directories

I have two directory on my D drive. D:\1 and D:\2. Directory 1 and 2 and subdirectories have a bunch of files. I need a batch file that will: Read each file in Directory 1 and check if the same ...
1
vote
1answer
204 views

Replace certain characters from many txt files within a folder

I have many txt files inside a folder and I want to replace/remove some characters in them. I want to remove "{", "}", and want to replace "*^" by "E" (here *^ has to be together). Is there a way to ...
1
vote
4answers
3k views

Can I use a batch file to remove blank columns in a .csv

I have nine columns in my current .csv file, however, the 2nd and 3rd columns are blank and I want to get rid of them. Is there a way to use batch commands to remove these empty columns from my .csv ...
1
vote
1answer
479 views

Windows batch file or script to load exported Wi-Fi XML profiles onto a new laptop

This probably is as simple as reconfiguring the standard code used by MS for the same thing but .. I hope maybe someone has already done it. You can easily export a Wi-Fi profile to a USB including ...
1
vote
2answers
2k views

Create a text file using user input from a batch file

Is it possible to write a batch file that will create a popup window for the user to input some specific information, and place that information into a text file? The text file should already have ...
1
vote
1answer
894 views

use variables inside if and for loop

I have the following code: echo off set n=11 set m=12 set /a nme=3 set /a mdiff=nme-1 pause if %n% NEQ %m% ( if %mdiff% LEQ 3 ( for /l %%C in (1,1,3) do ( if %%C EQU 1 ( ...
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?
0
votes
3answers
542 views

Batch repacking zip archives into 7z

I have many zip archive files that I would like to re-pack into 7z archive format, as that would save me a lot of space. How do I batch-repack those files on a Windows 7 computer? I tried doing this ...