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
241 views

How do I create a bat file to convert video files in a folder using ffmpeg

I would like to create a bat file that will go to a certain folder that contains video files, look for any files that are not .avi and convert them to .avi using ffmpeg. I don't need, and don't want, ...
1
vote
1answer
191 views

batch file to copy files keeping originals in other folder

For example I have folder: F1\F11\some files... F1\F12\some files... F1\F12\F121\some files.. And I have another structure F2\F21\some files... F2\F22\some files... F2\F22\folder\some files... ...
1
vote
1answer
72 views

desktop shortcut does not work

I have created batch file that start apache and mysql server,copy try.exe on desktop and run project in browser.that works fine.but onclick desktop shorcut error occured.error is windows can not find ...
1
vote
1answer
677 views

batch script help, find, replace registry keys

I'm trying to figure out why my reg import command is not working in the script below. When I run the reg import fileName.reg from the DOS it works fine but when included in the script below it does ...
1
vote
1answer
679 views

How to Use Mklink Batch-files with FOR command? (Automatic Junction-Point Recreation)

I'm trying to create a batch-file that creates (DIR) junction points; I commonly use. Bellow is a script, which creates multiple links, to the same location. @echo off for /f %%i in (input.txt) ...
1
vote
1answer
997 views

IP, Gateway and DNS changer [.bat Win7]

I have a batch file that I use on my WinXP SP3 (I found it on the net and it worked). SWiTCH TO CONNECTION 1 @ECHO OFF set varip=192.168.0.118 set varsm=255.255.255.0 set vargw=192.168.0.1 set ...
1
vote
1answer
2k views

Create a Batch file to backup and restore Network Printers for All Users

I have an XP machine with multiple profiles. These profiles sometimes have different printers mapped to each user. Example: User A has network printer 1, 2 and 5 mapped. Printer 2 is default. User B ...
1
vote
1answer
306 views

wait after call command minecraft

I'm trying to create a batch file for a friend because he has some problems on minecraft. He needs to launch minecraft 80 times without closing java error... I have 2 batches, one with a while, and an ...
1
vote
1answer
7k views

Batch file script for Enable & disable the “use automatic Configuration Script”

My intention is to create a .bat file that toggles the check box of "use automatic Configuration Script" in Internet Settings. The following is my script @echo OFF setlocal ENABLEEXTENSIONS set ...
1
vote
1answer
233 views

Launching a scheduled task on a windows 7 VM on startup

I have a batch file I would like to run every time my Windows 7 VM restarts. I have created the batch file (and it functions as expected) as C:\example.bat. I have also setup a task in Task Scheduler ...
1
vote
1answer
336 views

Batch image program to replace 2 colors?

I have a lot of .png images, and I want to replace a color to another color.. Is there a batch program to do that? I'm on Windows 7
1
vote
1answer
278 views

How to extract binded file using batch script?

I binded two files image1.png and image2.png using command copy /b image1.png+image2.png bindedimage.png. How can i extract bindedimage.png to image1.png and image2.png?
1
vote
1answer
114 views

Batch Script for backup

I need a batch script that will zip up all files in a particular directory and save it to another directory in a YYYY/MM/DD-HH/MM/SS format. I've seen things similar but not sure about this. Thanks! ...
1
vote
1answer
154 views

Scheduled logoff scripts

I wondered if it was possible to launch a logoff script only, for example, every friday. Can this task be scheduled in Active Directory or must I programm a scripts that adds and remove it every ...
1
vote
1answer
573 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
772 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
97 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
114 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
408 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
2k 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
62 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
8 views

Macros doesn't load on powerpoint startup

I have created a powerpoint macros to run a batch file when slideshow starts. This is my code Sub OnSlideShowPageChange(ByVal SSW As SlideShowWindow) If SSW.View.CurrentShowPosition = _ ...
0
votes
1answer
18 views

Windows shell to play (enqueue) all video files in correct order

I'm burning series on a DVD. I'd like to include Play all option to play them all. Of course, this should work for any player the system has installed. What I'm trying to do is to invoke the very ...
0
votes
1answer
39 views

FFMPEG concat intro video to each file in directory (all mp4)

I'm trying to write a concatenation script (for osx) to add an intro.mp4 video to over a hundred other mp4 videos in a directory. The codec will stay the same mp4, the intro filename will stay the ...
0
votes
1answer
44 views

Add Date-Time Stamp To Copied File using Windows Batch

I thought this would be simple but it seems more of a challenge than I thought. I want a file to be copied and pasted with a time stamp appended. I get the time stamp using this code: set ...
0
votes
1answer
25 views

How to process files with purely numerical extenson [ regex ] Windows

Windows, batch. I want to process files in batch for loop. The problem is:I have no idea what exactly the extension will be. What I do know is that it will be a number. So what I'm trying to create ...
0
votes
1answer
62 views

Powershell Folder monitor/batch execution

I am new to Powershell. I have found a script that works with what I need, kind of. What I am looking for is a script to monitor a folder for specific file names/types. Depending on the file ...
0
votes
1answer
47 views

How to make batch file to open specific Profiles in Google Chrome

I have .BAT batch files to open a set of programs, web pages and explorer windows. With sufficient Googling I've still come up short as how to execute the profile target "C:\Program Files ...
0
votes
1answer
15 views

How to run b2sum-amd64-windows command recursively in a batch file?

BLAKE (hash function): https://blake2.net/ Download: https://blake2.net/b2sum-bin_20130305.zip The current b2sum-amd64-windows command does not include recursive option For example in windows ...
0
votes
1answer
28 views

Xcopy.exe: Hide all errors (window prompt)

I syncronize a folder on the hard drive with my USB device every time I insert it. For this I use a simple batch script that checks if the USB stick is inserted and if it is then do a sync by XCopy. ...
0
votes
1answer
59 views

Rename files using batch file

I have been searching for a way to rename 150 files daily simply by executing 1 command. The current files are in the same folder C:\reports. The file names differ and the only change I have to make ...
0
votes
1answer
22 views

How to use batch file to do X if it's ran on a laptop?

How do I write a batch file to do different things based on whether it is ran on a desktop vs. laptop? E.g. if on desktop, install x. If on laptop, skip x and install y instead. Edit: Windows 7 ...
0
votes
1answer
34 views

What does the percent sign indicate when used as a directory in batch files?

I have made a few batch files the hard way by CD-ing into the directory by typing all the way from root drive to folder. I have seen a few example codes use percent signs enclosing a few key words and ...
0
votes
1answer
33 views

Batch zipping multiple files into a single archive

I have the following drag-and-drop batch script for creating zip files @echo off if [%1]==[] goto :eof :loop "C:\Program Files\7-Zip\7z.exe" a -tzip "%~1.zip" "%~1" shift if not [%1]==[] goto loop ...
0
votes
1answer
50 views

Windows 7 batch file to delete specified files in a path with spaces

I'm trying to get a batch to work but it seems it can't find the specified file. I'd like the batch to do the following: Kill my IP camera software Wait a few seconds to ensure the software has ...
0
votes
1answer
43 views

Can Windows XP use net send command to send a message to a later version of windows?

The net send command can only be used in Windows XP or earliar versions. But can a Windows XP computer send a message to a later version of windows using the net send command?
0
votes
1answer
44 views

Batch to retrieve TFS version erroring in FOR /F where TFS attempts to PIPE to findstr

I have this partial batch, but it gives me an error (On 64 bit installations) SETLOCAL EnableDelayedExpansion REM Figure out what ProgramFiles Root we run the command SET ...
0
votes
1answer
326 views

Running batch file on remote machine (VM) using PowerShell

Quick question, have searched for awhile but can't find answer anywhere. Some background: I have a local machine and remote machine (Virtual Machine) that I am connecting through RDP. I have a batch ...
0
votes
1answer
50 views

How to append to the user %PATH% from command line

I found plenty of questions like this one on StackExchange but no one work in my specific case. I would like to easily add literally %FOO% to the user environment variable PATH. I found the ...
0
votes
1answer
92 views

How can I have a custom 7Zip batch script work like the “add to archive…” context menu action of 7Zip?

I am trying to figure out a way to select several files and folders in Windows Explorer and add them to a password protected .zip archive using a batch script, 7zip and a custom context menu item. ...
0
votes
1answer
54 views

How to batch compress sub subfolders?

I'm on Windows Server 2012 R2. I have a directory that looks like this: Folder01 Subfolder 1 File1 File2 File3 Subfolder 2 File1 File2 Subfolder 3 ...
0
votes
1answer
38 views

for loop stops batch script

ok so been playing with this script and for some unknown reason it always crashes out (exits the prompt) when the script reaches the for statement, however if i simply copy and past these commands one ...
0
votes
1answer
88 views

Delete “unidentified” carriage-return char from a text file

I have a text file containing a strange "carriage return" char. If I open the file with Notepad I can't see the new line. If I open the file with Wordpad I can see the new line. I uploaded an ...
0
votes
1answer
63 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
154 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
21 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
53 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
212 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 ...