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
2answers
3k views

Looking for utility to batch change created/modified date of multiple files in ascending datetime (windows XP/7/Mac/Linux)

I'm looking for a utility that batch/bulk modifies file datestamps (date-modified and/or date-created) to the second accuracy but does so in ascending incremental order, e.g. File1 2012-04-18 ...
2
votes
1answer
423 views

cmd to change Java settings

Is there a way to have a cmd add an exception to the proxies in Java? (Control panel > Network settings > Advanced nework settings) It should be something a user can double-click or wrapped in a ...
2
votes
2answers
698 views

How to compile .bat file using QT Creator

Question: How do I compile a .bat file using QT Creator? More info: specifically, I am trying to install Windows Image Writer and the download only includes source files. The README.txt tells me to ...
3
votes
2answers
2k views

Wget - if / else download condition?

I want wget to prefer a certain filetype over another, if the files have the same basename. For example: if foo.ogg available, don't download foo.mp3 the way i use wget so far to ...
4
votes
3answers
2k views

How to quickly save what is currently shown in cmd.exe to a file

I am asking if there is a quick way/command to save the current standard output from cmd.exe or powershell to a file. For example, I have run a bunch of commands in cmd.exe which generating like ...
0
votes
1answer
228 views

Why is my batch file doing nothing for 46 seconds before a forced quitting?

I have figured out what part of the code is doing this but dont know how to fix it... Here's the code: Set _Path=Private For /F "Delims=" %%I In ('Attrib "%_Path%"') Do Set _Attribs=%%I If ...
0
votes
0answers
110 views

Is is possible to call /min name.bat?

I know it is possible to start /min name.bat, bt is it possible to call /min name.bat?
2
votes
1answer
17k views

VLC command line batch video conversion

I am trying to convert some .webm file to mp4. In the GUI I select the following settings for the conversion: Video: Codec: H-264 List item Bitrate: 512 kb/s Frame Rate: 23.97 fps Scale: 1 ...
0
votes
0answers
602 views

Getting file owner on network share via dir

I have a batch file that does several things, and among them is: dir "\\network_share\directory" /Q /A:-D /S > output.txt The file then writes out lines like this: 01/01/2012 01:01 PM ...
2
votes
1answer
1k views

Windows CMD command to run a command inside every subdirectory?

I have a batch script I wrote called "joiner.bat." It needs to run inside each of 730 sub-directories of a folder. The joiner.bat file has already been copied into each of the sub-folders, it just ...
9
votes
2answers
9k 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 ...
0
votes
1answer
2k views

Automatically connect to VPN when initiating RDP Remote Desktop connection and then disconnect VPN when done

I know I can create a batch file to initiate a VPN connection followed by an RDP session, however I want to know if it's possible (in Windows 7 and ideally Windows XP as well) to have the VPN ...
1
vote
1answer
833 views

Open file with a batch file pinned to the taskbar

How do you get a file opened by a batch file pinned to the taskbar? In XP you could just drag your batch file onto the quicklaunch section of the taskbar, then any file you drop on that icon would be ...
0
votes
3answers
1k views

Excel or Batch - Trying to Automate Text Correction (Many Changes; One or More Characters Each)

I have a lot of lines of text. I can put them into a text file or into an Excel spreadsheet. They need many changes. Here's an example of a before and after: Input: I'm buying one! Only ...
0
votes
2answers
1k views

Unable to copy files from protected folders

When I try to run the following copy %HOMEPATH%\"My Documents"\test.txt %CD% from c:\backupSettings I get the error: Access is denied. 0 file(s) copied.
0
votes
1answer
600 views

Read Metadata from multiple files (namely Images with Copyright info)

I'm attempting to produce a report of metadata from images within a network drive and all of its subfolders to check copyright information and other metadata (Creators, Authors etc). Recursively and ...
2
votes
1answer
610 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 ...
0
votes
0answers
530 views

Command to close window from Command Prompt

I have some scripts to do some work for me on Windows 7, and one issue I have is that my most used script lives on a flash drive, clears out the Drivers folder, then opens the Drivers folder for me ...
2
votes
1answer
879 views

Kaspersky is blocking my batch file

I made a batch file that is seen as malicious by Kaspersky. How can I tell that it is an acceptable file? I've found how to add an exception, but I can only add .exe, not .bat.
1
vote
0answers
360 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
1answer
442 views

vim automation ex commands

Yeah, I know, I could just use sed. But lets assume I'm some sort of sicko. A masochist if you will.. I have a file, /tmp/a.script, containing: %s_"taxonomy\.php[^"]*\([0-9]\)_"\1.taxonomy_g ...
1
vote
2answers
263 views

Rename photos, jpg ordering based on raw times

I have a large set of photos taken with both JPG and RAW which are named in wrong order since the camera counter reset after about half of them. While going through the JPG files I turned some of them ...
1
vote
1answer
305 views

Batch search and replace file path

So I've got lots of m3u playlists created on my Windows machine inside a folder with file paths to tracks as: D:\path-of-mp3 So first I want to replace all the \ with / and then D: with ...
1
vote
3answers
1k views

Batch transfer file every x minutes

I have a simple question, but I don't remember the batch syntax very well. If I want to create a batch file that transfers all the files in Folder A to Folder B every 20 minutes, what does the batch ...
7
votes
5answers
35k views

How to copy a list of file names to text file?

How can I copy the names of files in a directory to a text file or to a clipboard?
0
votes
1answer
2k views

windows batch script get environment variable changes

I have a script that does something like setx %PATH% %PATH%;%ANOTHER_VAR% echo %PATH% When I echo the path, it does not include %ANOTHER_VAR%. is there a way to ensure the new variables are ...
1
vote
4answers
880 views

Windows Registry for New Menu with Batch Files

Windows 7 - Add an item to 'new' context menu This shows how to add items to the "New" dropdown menu. How about taking them away? Also, I want to make a batch file that automates this. Like ...
0
votes
1answer
3k views

Get Extended Properties of a file

What's the fastest way to output the 'Title' property of all files in a directory in Windows 7? I tried dir in command line but that only prints the filename, not the Title found in the extended ...
0
votes
1answer
384 views

Batch file to change the wireless router password

What would be the batch file commands to change the password of a wireless router at IP address 192.168.1.254? I'd like to use it to turn off my wireless router at night and then turn it back on ...
1
vote
1answer
766 views

cmd to powershell transition in batch-script

Is there a way of writing a batch-script that's executed via C:\>cmd.exe a.bat to switch into powershell.exe and run the remaining lines of code? 1. | echo "Hi. I'm cmd.exe." 2. | powershell 3. | ...
1
vote
2answers
839 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: - ...
2
votes
2answers
395 views

trimming an XML file the dumb way

(see solution below) I have XML files which I parse with a Python script (I did not write it but it does the job perfectly). The problem is that the XML file is large (~ 1GB) and the parsing take ...
0
votes
1answer
1k views

Looking for software that will batch convert a folder tree containing CHM files in different folders to EPUB [closed]

I have a folder tree with varying folder levels and within each folder are a number of CHM files (Compiled HTML files). I would like a tool to batch convert all of these to EPUB (book) by just ...
3
votes
3answers
279 views

Bulk renaming files [duplicate]

Possible Duplicate: How can I mass rename files from the command line or using a 3rd party tool? So I have a series of files with the following format Their real file name followed by the ...
1
vote
5answers
2k views

Any method to batch-compress multiple files?

Does anyone know how multiple files can be GZIP compressed? I have lots of files in a folder and I need to compress them individually. Actually, I've found a way to do it. GZIP command line binary ...
3
votes
1answer
734 views

Windows Batch recursive delete old files

I'm looking for a function in batch that recursive delets all files/folders older than X Days from a given path. Is there a Fast and easy snippet that could be placed in a batch function?
2
votes
6answers
6k views

How to list all files on all hard drives with output in MS-DOS batch?

How can I list all files (including system and hidden) on all hard drives (not removable drives)? I think in something like a: dir -a -h *.* /s > file.txt but this is for the specific drive ...
-2
votes
1answer
70 views

Why my computer of each session will be running a CMD program? [closed]

Will pop up a black to run the program frame, the closure not appear
3
votes
1answer
10k views

Why does 7-zip.exe return “Access is denied” with these arguments/parameters?

In a batch file: START "7-zip" /D "C:\Program Files\7-Zip\" "7z.exe" a -o <F:> testArchive F:\test Or, alone on the cmd as: 7z.exe a -o <C:\users\user\Desktop> testArc ...
1
vote
1answer
222 views

How to give and pass input between separate programs?

There's so many individual, useful programs out there who's source code isn't available, some of which would integrate beautifully with each other! The only problem is I don't know how to enable ...
1
vote
1answer
578 views

Environment variable set in batch isn't expanded in shortcut

How can I make my environment variable (set in batch file) visible in application executed right after setting this envvar? Here's the scenario that I use: In my external script (not quite ...
0
votes
1answer
502 views

Basic batch file error

I'm writing my first batch file and have two basic questions. I'm using Windows7 and wondering if there is an easy way to run something as an administrator? At the moment I just type cmd into the ...
1
vote
1answer
1k views

How to rename and move files to new directory

I would like to rename a file that is uploaded to another server from extension .txt to .txt_mvd and move to a different directory for archiving in a Windows batch mode. Can anyone help with what the ...
1
vote
1answer
1k views

Batch producing PDFs from a sequence of URLs/multiple URLs

Does anyone know of a way of making PDFs from a sequence of URLS/multiple URLs for webpages? For example, I want to print individual PDFs from a batch of webpages via their URLs. Is there an ...
3
votes
1answer
135 views

Batch-file to remove part of a number before passing it to an application

I've been racking my brain trying to get my softphone to dial numbers on web pages. I've gotten the browser to pass the number through to the softphone, but it adds tell:+ to the number and won't call ...
3
votes
1answer
973 views

how do I make a batch file that executes this command

I am trying to make a batch file that executes the following DOS command: exiftool "-FileName<CreateDate" -d "%Y%m%d_%H%M%S.%%e" "C:\Users\Tom\Desktop\belvedere" (FYI, exiftool.exe is a script ...
0
votes
1answer
271 views

Batch transpose a comma separated file

I'd like to reorder a file with a batch from this schema: Default Web Site;anonymousAuthentication Default Web Site;windowsAuthentication Daisy;anonymousAuthentication Daisy;windowsAuthentication ...
4
votes
2answers
5k views

How do I open a second Skype instance with a Batch file?

I want to launch a 2nd Skype instance from a Batch file. I have done that successfully with the run window: "C:\Program Files (x86)\Skype\Phone\skype.exe" /secondary But for the life of me I ...
2
votes
1answer
1k views

Convert Mathematica to PDF via command line

I am on Linux and would like to convert a bunch of Mathematica 8 Notebooks to PDF. Is there some way to convert them on the command line? I'd like to write a makefile rule for the conversion, so that ...
3
votes
2answers
121 views

Batch processing two sets of files

Assume that I have two sets of files foo_A_uid.bar and foo_B_uid.bar. Each set contains (a known) number of files. Now, I want to process corresponding pairs using some tool (ImageMagick in my case), ...