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.
22
votes
12answers
60k 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 ...
35
votes
7answers
79k 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 ...
9
votes
3answers
3k 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 ...
2
votes
3answers
4k 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?
25
votes
6answers
33k 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.
16
votes
8answers
10k 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 ...
12
votes
7answers
20k 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 ...
6
votes
6answers
11k 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 ...
5
votes
5answers
3k 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 ...
2
votes
3answers
1k 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.
23
votes
1answer
4k 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. ...
5
votes
1answer
8k 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 ...
3
votes
1answer
980 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
3k 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
4k 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
9k 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
2k 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 ...
2
votes
2answers
2k 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 ...
16
votes
10answers
10k 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)?
11
votes
6answers
29k 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
7answers
19k 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 ...
7
votes
1answer
27k 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
2k 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 ...
2
votes
4answers
3k 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 ...
5
votes
2answers
1k 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
2answers
2k 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 ...
2
votes
1answer
631 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 ...
4
votes
2answers
2k 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
6k 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
1k 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
4answers
255 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
100 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
1k 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
2answers
2k views
How do I shutdown a computer on my network?
I want to shutdown a computer on my network at home. When I try the usual 'shutdown' command, I get the 'Access denied (5)' message. In what way must my computer be connected with the other computer ...
0
votes
4answers
2k views
Trying to hide a folder and unhide it in the same batch file with the attrib command
I am trying to hide a folder with a batch file, using the attrib command and I also want to unhide the file with the same batch file. can i do this as a single batch file? or do i have to call another ...
0
votes
1answer
314 views
OCR batch processing images
I have about 3000 small images of text which I want to process into a comma separated list.
Is there any free program that would be capable of this?
16
votes
6answers
113k 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 ...
6
votes
8answers
13k 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 ...
13
votes
8answers
20k 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 ...
5
votes
7answers
7k views
Do something every 10 seconds batch file
I have a batch file:
arp -s 192.168.1.254 xx-xx-xx-xx-xx-xx
ipconfig /flushdns
How can I do these two commands on Windows XP, every 10 seconds?
17
votes
6answers
69k views
Running bat file at startup as administrator in Windows 7
I'm currently running a startup script in form of a bat file successfully in Windows 7 (I've inserted a new registry key entry with the bat file path as value in
...
4
votes
7answers
11k views
How do I create an unattended installer for various applications in Windows?
I have had to reinstall my operating system today and there a ton of programs that I need to install, not to mention quite a few configurations to make after installing them!
I heard some people are ...
7
votes
2answers
16k views
Batch convert multiple PDF to Image on Mac
What would be the quickest way to convert a bunch of pdf files to jpeg files? I know I can open Preview and Save As image, but that could take a long time.
6
votes
1answer
5k views
Run a batch command for every file in a directory
I have a Java program working with this syntax:
command.jar namefile
I have to run this program for 1600 files in a directory. How can I run this command for every file automatically?
Is there a ...
4
votes
4answers
8k views
Batch convert .doc to .docx (and equivilent for other office formats)?
I wish to convert a large number of office files into the newer versions, eg. .doc's to .docx's. I need something for all of the difference MS office application filetypes.
What is the best tool for ...
2
votes
1answer
284 views
Is there a way to copy the file paths of ALL active windows' opened files? (for saving and restoring your Windows session across a restart)
There is a program I know of called Twinsplay - Professional Edition, which among its other functions, can 'session save' your current open files (i.e. user-opened files - whatever is actively ...
2
votes
6answers
10k 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 ...
2
votes
2answers
289 views
Batch download pages from a wiki without special pages
from time to time I find some documentation on the web that I need for offline use on my notebook. Usually I fire up wget and get the whole site.
Many projects however are now switching to wikis, and ...
2
votes
1answer
2k views
Setting multiple environment variables in a shell spawned via windows batch script
I have a batch file that spawns a shell with a modified path with the following command:
cmd /K set PATH=%PATH%;<additional path locations>
I want to set additional environment variables for ...
1
vote
4answers
4k views
how can i get the current system date and time using command prompt
I want the date to be in a specific format : "MM-DD-YYYY HH:MIN AM/PM"
waiting for the solution.

