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

3
votes
1answer
612 views

Batch real time wait for a file

I have some batch scripts which wait for files. The wait loop is done with the typical IF EXISTS loop: :waitloop IF EXISTS file.zip GOTO waitloopend sleep.exe 60 goto waitloop : waitloopend I am ...
2
votes
1answer
49 views

How to register a macro programmatically?

I have like 700 machines in which I need to deploy a new macro we have created. Is there any way to do this via cmd?
2
votes
1answer
88 views

XCOPY Copied files and folders as a file

Today i had some problems with a laptop, and i had to reinstall the windows on it, while i was in the recovery console, i used XCOPY batch command to copy files and folders from ...
2
votes
1answer
97 views

Programming a little file to change between headset and monitor speakers?

I think there is a way to write a little file in Batch, I believe to change the default sound output system. What's the language that's written in and how can I write it (I am running Windows 7)? ...
2
votes
1answer
54 views

.cmd script output only goes to pipe occasionally

I'm having a problem with a .cmd script only occasionally passing it's output through a pipe. The script is auto generated by npm and it runs jshint using node. Here's the script: :: Created by npm, ...
2
votes
1answer
320 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
1answer
287 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
1answer
166 views

Need assistance making a batch file for renaming files in separate folders

Ok, here's one for you. I'm trying to use a batch file to rename a bunch of files, but none of them are in the same folder as the batch file itself. The command prompt keeps telling me that the ...
2
votes
1answer
43 views

How do I add leader titles and tails to a large batch of videos with Final Cut Pro?

I have around 250 videos, all in the same pixel size. I've been asked to add a leader (with title and date) and a tail with copyright information. The title and date changes depending on the video, ...
2
votes
1answer
462 views

Cannot use the F12 key as a shortcut key in Windows 7

I've got a batch file that I am trying to launch from the keyboard. I created a shortcut for this batch file and can successfully use F1-F11 as the Shortcut Key. I can set F12 as the shortcut key, ...
2
votes
1answer
257 views

How to determine if file on another machine is being accessed

I would like to determine if a file on another computer (or network) is currently being accessed. Ideally, I want to perform this task in a batch file, but other methods of performing this feat is ...
1
vote
1answer
70 views

Extract ip address from specific NIC in win7 batch file

I am building a batch to automatically switch a proxy config and the related ip settings bui i am having trouble extracting the ip address of the network adapter i need. I have one "real" nic, and two ...
1
vote
1answer
61 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
37 views

Imagemagick batch converting memory overload

I must to convert about billion of images from jp2 to jpg... I create such .bat for /d %%d in (*) do ( for %%f in ("%%~d\*.jp2") do ( convert -limit memory 0 -limit map 0 "%%~ff" -quality 25 ...
1
vote
1answer
99 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
21 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
212 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
195 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
246 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
263 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
191 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
1k 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
126 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
149 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
143 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
97 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
101 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
373 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
484 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
74 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
941 views

Make a batch file find duplicate file names with different extensions, and actions on the results

What I want to do is have a batch file search folders, and subfolders, for matching file names that are ending in .mp3 and .wma and delete or move the *.wma duplicates. Below you'll find what I have ...
1
vote
1answer
6k views

Batch File - Delete Shortcut From ALLUSERS Desktop

In Vista/7, if I try to delete a shortcut using the following command -: del "%allusersprofile%\Desktop\MyShortcut.lnk" ...Windows sees this folder as empty and doesn't delete the file. The ...
1
vote
1answer
94 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
1k 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
925 views

Trouble copying a folder from my computer to another network computer using ROBOCOPY

I am trying to write a batch file to copy all files and subfolders in a folder from my local machine to another machine on our network. I am trying to use the ROBOCOPY command and would like the ...
1
vote
1answer
134 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
304 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
726 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
47 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
82 views

How can I start multiple applications and instances using a Windows Scheduled Task?

I have three main applications. I am trying to start them automatically at log on in a specific order with a given delay. Here is an example of how I'd like everything to be: User logs in. Wait ...
0
votes
1answer
110 views

User input in batch file

I have a batch file that looks like this, which takes a picture of a webpage and crops it: cd C:\users\***\Downloads\IECapt-2008-06-10 IECapt --delay=10000 --url=http://test.com/picture.swf?id=1 ...
0
votes
1answer
63 views

Find the character in line?

I am trying to find the some character in file using find or findstr, for example file contents like: "/test/abctest/abci.txt = c:\abctest\tst\work\workt.txt;abc_test1" "/test/abctest/abci.txt = ...
0
votes
1answer
124 views

Windows - Check if copy is in progress via command line

I was wondering, is there any way to know via the command line in windows if a copy is in progress? I'm writing a batch script to automatically shutdown all the computers on my network but we do ...
0
votes
1answer
282 views

Batch file to obtain system info of remote servers list with unique login credentials

I'm not familiar with scripting. I have a task at hand which requires to check server uptimes to make sure if they were actually re-booted when they suppose to. I was going through Google Search and ...
0
votes
1answer
127 views

.Bat file that opens 2 URLs in different browsers then click on button located on the each page

I Would like to click on .Bat file that opens 2 URLs in different browsers (Firefox and IE) then click on button located on the each page (ex. Submit or login buttons) . This is what I got so far in ...
0
votes
0answers
304 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 ...
0
votes
0answers
58 views

Create logical drives from batch

I have a need to have some logical drives that extend from my C: drive. My C drive is 200gb roughly and the two other drives P: and T: need to be 50Gb each. How can I create these two logical drives ...
0
votes
0answers
518 views

Problem with running batch file as scheduled task

I am trying to setup my rsync script to run automatically. It uses a key file for authetnication so there is no issue of missin ginput or something. I have user a. In user a's profile live a batch ...
0
votes
0answers
281 views

How to write a batch file to delete subfolders less then 10MB?

I have a folder, "myFolder". In "myFolder", I have many subfolders. I know that if the subfolder is less than 10MB, it can be deleted. Instead of checking the folder step by step, how can I write a ...
-4
votes
0answers
43 views

batch file for 3day and monthly backup

I have to create a batch file it should function like this It should take a backup every three day with date folder name"c:\wamp\xyz" of this folder after very 10 backup that is a month. so at the end ...