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

1
vote
1answer
556 views

Set Windows XP simple start menu via CMD/Registry

We're using temporary user accounts and when logging in, every time the classic start menu is restored. The new two-column start menu is not blocked by policies. I can turn it on manually, but I want ...
1
vote
1answer
729 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
1answer
95 views

Automating music transcode

I want to be able to transcode my music library (lots of nested folders, no space) to a different bitrate. I've been doing this manually with Media Coder, but I've noticed that not every file ends up ...
1
vote
1answer
113 views

Is it possible to open a file with different programs from explorer and from shell?

For example, if I click txt file from explorer a notepad window shows up, but when I open 'menu start'->run->cmd.exe and then type txt file name also notepad gets in my way. Can I set it to be ...
1
vote
1answer
2k views

Windows task scheduler not running batch file on network drive

I have a batch file that I'd like to run with the Task Scheduler. Running the batch file manually works fine. If the batch file resides on the C:\ drive, task scheduler runs it fine, but if the ...
1
vote
1answer
159 views

How to find unexisting file in folder?

I have a folder with .mp4 files which i show online using web application. The rest of information about the video files is taken from a database. I have n files in the database and n-6 files in my ...
1
vote
1answer
404 views

Windows 7 batch: Change to program folder before starting program

My program opens nicely with a Windows 7 shortcut. I want that in a batch file. Contents of shortcut [full path] copied into *.bat opens program minus needed hidden parameters. I tried preceding with ...
1
vote
1answer
1k views

How to ensure full path in Windows batch FOR loop

I've created a generic batch (or Windows Command) file that lets me loop through the contents of a directory and call a command for each item. IF a%1==a ( set _DIR="%CD%") ELSE ( set _DIR="%~1") IF ...
1
vote
1answer
61 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 ...
0
votes
1answer
23 views

Cannot use PStool for more than 7 PCs over LAN Network

Below is the batch file command I am currently using to shutdown the remote computers through LAN Network. Here is what it does. I have specified the remote computers IP address in text file named ...
0
votes
1answer
34 views

batch file to run two application and when 1st app closed, other will be close too

Its a game called SubwaySurfer for pc, to run it through your keyboard we need to set autohotkey, what I need is when user click to play a game the autohotkey file will be run too, and when the game ...
0
votes
1answer
17 views

Variable and Conditions with Batch Windows

I would like to make a batch. The goal is simple : For all files with DSW xtension If my filename contains VU1 so variable1=2 and variable2=2 If my filename contains VU2 so variable1=20 and ...
0
votes
1answer
24 views

Batch file that sets a variable equal to the drive letter of first removable disk found

I want to write a batch file such that when I run it in cmd, it sets a new variable equal to the drive letter of my usb flash drive (if, of course, it's the only storage device of that type). Assume ...
0
votes
1answer
16 views

Batch process in photoshop, Merging two images together

this is more of a added question to an original question asked from this link. How do I batch merge 2 images in Photoshop? im trying to accomplish this same feat, but i want to save as jpeg instead ...
0
votes
1answer
27 views

Batch Move using wildcard in filename is getting files that do not match parameters:

I have a number of files with a 3 digit prefix. I'm attempting to move files based on the prefix using a wildcard. I expect that move 100*.sql subdir would only move files with the .sql extension ...
0
votes
1answer
61 views

Set NVIDIA digital vibrance to 100 with a batch file

Yes, is this possible? I'd be so stoked if I got this working. There's this game I play where I like to play it with Digital Vibrance set to 100%. But I hate having to open NVIDIA control panel every ...
0
votes
1answer
25 views

How can I remove spaces only from specific position using batch script

I have an entry as below in my input file (input.txt) : mcolWarrant||||||||| 0||Forwarded|| mcolWarrant||||||||| 0||Forwarded|| mcolWarrant||||||||| 0||Forwarded|| ...
0
votes
1answer
38 views

How to batch process overlaying of different images to a directory of images?

Folder1 has some images in png format and Folder2 has same number (& names) of images in png format with a watermark and transparency. I would like to overlay images from folder2 on images of ...
0
votes
1answer
32 views

Debugging a python program, called from another batch file

I have an annoying problem. I have a windows batch file, that does some initialization (mainly setting python paths) and then calls a python script. When the batch program is run, another window is ...
0
votes
1answer
88 views

.bat file to rename files (not bulk)

I take pictures of airplanes. When i put them on the computer they are named DCS_5678 (or anotrher number :p ) The way i catalogue my pictures is by renaming them as followed: ...
0
votes
1answer
69 views

Parent process details from the batch script - find out what called the batch script

We have a batch file which is calling php scipts. Php script load some data files to our system. I cannot understand what is starting that batch file in the middle of the night. I cannot find any ...
0
votes
1answer
146 views

Windows Batch - Move files to folder parent & Remove empty subfolders

I found several such questions and tried to adapt the answers to my needs but no luck so far. Im trying to create two context menu entries in Windows 7 that would: Move all files from ...
0
votes
1answer
70 views

How to search and extract part of string in batch script?

I am pretty new to windows batch scripting and am having trouble to search and extract a portion of a string from a text file and display it out. Some samples data are shown below. The keyword for ...
0
votes
1answer
63 views

Batch file in windows scheduler

set PATH=C:\Users\... call date2.cmd md %DT_MM%-%DT_DD%-%DT_YYYY% cd %DT_MM%-%DT_DD%-%DT_YYYY% So, I set my path to the folder that has PSFTP for me to run and run a file that will get the current ...
0
votes
1answer
142 views

Batch file XCOPY cannot find existing directory

I'm writing a small batch file to copy my C# project to another drive. I'm using XCOPY to copy an entire folder (We have some XP machines still, so robocopy isn't an option). However, when I run the ...
0
votes
1answer
181 views

Using batch to verify a process is running with WMIC

I am attempting to write a script that will check if a process is running (in my case a virtual machine) @echo off wmic process where name="VirtualBox.exe" | find "GitHubEnterprise" /c > tmpcount ...
0
votes
1answer
188 views

mklink in batch file keep returning insufisent permission

I made a code to execute an simbolic link between my Music folder and the music stored in my other hard drive @ECHO OFF SET /p bn=Band Name : md "%E:\Music\%bn%" SET /p dl=Album Name : mklink /d ...
0
votes
1answer
923 views

windows 7 batch file change desktop background

i want to write a batch file that changes the desktop background this is what i have reg add "HKCU\Control Panel\Desktop" /v Wallpaper /f /t REG_SZ /d c:\j2Global\backgroundDefault.jpg reg ...
0
votes
1answer
71 views

.bat file to create a Library with icon in Windows 7 and 8

Is it possible to create a .bat file that creates a Library with an icon in Windows 7 and 8. Of course this can be done by following the already created tutorials online like Change Your Windows 7 ...
0
votes
1answer
868 views

7z in batch file with variables “Incorrect command line”

I'm trying to run the following batch file: set HH=%time:~0,2% set HH=%HH: =0% IF %time:~0,2% GTR 5 ( IF %time:~0,2% LSS 21 ( FOR /F "TOKENS=1 DELIMS=:" %%A IN ('TIME/T') DO SET HH=%%A XCOPY ...
0
votes
1answer
816 views

Changing Gateway and DNS addresses with batch file

I'm having a little crisis every time I have to change the gateway in order to access different sites from my workplace. It's time consuming and I'd be really glad if someone provides me with a script ...
0
votes
1answer
526 views

Batch File to xcopy multiple files from web server to share drive

I am trying to copy a group of files from a folder on my SharePoint site to a network share folder for manipulation "off-line". I am new to xcopy and batch files so trying to teach myself with ...
0
votes
1answer
18 views

Check if an user has given as an input 1 or more then 1 in an batch file

I am having an question with an Batch file Is it possible to let an user choose how many files it will enter? For example set /p count=Enter the number of files you are willing to set: IF %count% ...
0
votes
1answer
51 views

creating a batch file to open a program in a non-default state

Is it possible to create a batch file that would open a program in a non-default state? For example I would like to open firefox and the web console tool located in Tools->Web developer in Firefox ...
0
votes
1answer
218 views

How can I batch convert subfolders of images into single PDFs?

I'm surprised I couldn't find an easy script for this online. I have a directory with lots of subdirectories, each filled with TIFFs. How can I batch convert subfolders of multiple images (TIFFs) into ...
0
votes
1answer
41 views

Batch scripts to read a list then delete from a directory

I need to have a batch script that reads a file, and from a list in that file deletes items from a directory.
0
votes
1answer
58 views

How to define access to just the System event log on Windows 2008 Server

I want to restrict administrator user access to the Security event log, is there a way to do it? I was following this article, but so far no luck.
0
votes
1answer
59 views

How can I simulate Make's targets within a Windows batch file?

In working towards resolving http://tex.stackexchange.com/a/160685/17423, I'm looking to create a batch-file version of this makefile. Is there a clear/conventional way to simulate the 'target' ...
0
votes
1answer
187 views

Batch change filetype associations on OS X

I just installed Sublime Text 3 beta and would like to re-associate all the filetypes I have linked to ST 2 with ST 3. Is there any way to perform this as a batch operation? For example: $ ...
0
votes
1answer
54 views

Restart Service on Remote System Batch

Just having trouble with a batch and need some clarification on 'IF', 'ELSE' and 'GOTO' @echo off sc \\RemoteServer stop "My_Service" :query sc \\RemoteServer query "My_Service" if %state% == 1 ...
0
votes
1answer
426 views

How to extract part of a string between 2 delimiters, in Windows batch file?

I have a variable length string starting with START and ending with END as delimiters. I want to extract the string between START and END. I tried doing SET _result=%String:~6,-4% ECHO %_result% ...
0
votes
1answer
152 views

How can you batch process a directory of images using Intensify Pro?

I have a directory of 4000+ images that I took (timelapse). Since they are all nearly identical, I can be pretty certain that whatever tweaks I want to make to one can be blanket applied to all. How ...
0
votes
1answer
511 views

How to filter/pipe wmi output from batch or command prompt

I need to write a little script for a specific HDD. I use the following command to detect the HDD by size: C:\>wmic logicaldisk get size,freespace,caption | find "750153363456" E: ...
0
votes
1answer
4k views

How to make PuTTY's font automatically change color (while connected to a Linux server) as I did with Windows cmd.exe using a background batch script?

I was able to create a Windows Command Prompt that automatically changes its text color on a white background every ~1.5 seconds, thanks to the help of @dbenham and @Woody. I also use PuTTY every day, ...
0
votes
1answer
179 views

Formatting date to desired format in batch file

I am running a batch file as @echo off set yy=%date:~-4% set mm=%date:~-7,2% set dd=%date:~-10,2% set MYDATE=%dd%%mm%%yy% md UserRecords%MYDATE% cd E:\testuser\OpenDJ-2.5.0-Xpress1\bat ldapsearch -h ...
0
votes
1answer
79 views

Moving directories based on .md5 file to restore original directory structure

I ask for help regarding some scripting. I have a directory "J:\To_Sort" which contains another 1164 directories. Inside the "To_Sort" directory I also have 37 *.md5 files. These MD55 files contain ...
0
votes
1answer
71 views

batch file to display nicely compare files results

I'm looking for a batch code to prepare a file with the differences between two files in a nice way, Maybe highlight individual lines in a different color, Does anyone have such a script?
0
votes
1answer
287 views

Parameters for loading PDF files in MuPDF with different resolution

I'm running MuPDF in Windows 8.1. It works fine for the most part (it allows file association). But there are no CFG/INI files for manipulating parameters and no app-specific option menu in the ...
0
votes
1answer
263 views

Batch to check if removable disks are connected. If yes, execute another command

I know how to check if there are removable disks connected with a CMD command wmic logicaldisk where drivetype=2 get deviceid, volumename, description But now I would like to make a batch that ...
0
votes
1answer
118 views

How would I make a batch that asks user input for timeout time?

I have a batch that allows me to hibernate with timeout but now I would like it to ask me the time for timeout. So it would be something like below: Batch asks for %value%: (user would write a ...