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. Please use the tag [batch-file] for that.

learn more… | top users | synonyms

0
votes
1answer
13 views

batch insert same contents into multiple text files

How to batch insert contents of a text file into 500~700 other empty text files inside a folder. I dont have much idea abt windows batch , tried finding all over google but couldnt get any info about ...
1
vote
2answers
4 views

Batch Timeout /nobreak constant response

How do I get my batch file to use timeout /nobreak without displaying in the program "waiting for one seconds, press CTRL+C to quit"?
18
votes
4answers
9k views

VIM: What is the EX-mode for batch processing for?

The tutorial mentions that the Ex-mode is for batch processing. Since it is a nuisance, rather than a tool, for me, I would like to see some practical examples. Who uses it? Why? What is the EX-mode ...
-2
votes
0answers
18 views

How do I write a batch script that reads two columns of a CSV file at a time and executes a program that utilizes the retrieved data?

I am using a specialist java application which is used in my field (geology). The way I have written my batch files up until now is to take one CSV file at a time and access and process that data. But ...
1
vote
1answer
172 views

WIX: Run batch file based on checkbox value with admin right

I created a installer using WIX. However, after installing the software, I have a checkbox asking the user whether to run a batch file or not. If the user check the checkbox, the batch file will run. ...
15
votes
4answers
13k views

Windows CMD Batch, START and output redirection

I would like to run two programs simultaneously from a batch file, and redirect the first program's output into a text file like: start python 1st.py arg1 arg2 > out.txt start 2nd.exe %1 arg2 arg3 ...
1
vote
2answers
18 views

Delay batch files in between commands

How do I delay batch files in between commands, with say a once second delay, or even less? I've tried using the ping null command, but it never seems too work for me? ping 127.0.0.1 -n 1 > null ...
0
votes
0answers
18 views

Interrupted loop

How would I create a batch file with an interrupted loop? At the momen I have a file with sort of a matrix-y feeling that does this... :start echo %random%%random%%random%%random% goto start but ...
0
votes
0answers
25 views

Robocopy: ERROR 5 (0x00000005) Accessing Source Directory \\server\ParentFolder\ChildFolder\ Access is denied

I have the following robocopy command to copy the directory from a folder on the network location to another folder on the same network location: @ECHO OFF for /f %%a in ('wmic os get LocalDateTime ^|...
-1
votes
2answers
27 views

Windows CMD - How to rename all files in all subfolders to parent folder name

Alright scripters, Im still trying to wrap my head around the FOR command. What Id like to do is rename all files in all subfolders to the folder name they reside in, retaining their extensions. Id ...
0
votes
1answer
14 views

Windows batch extract zip files, into folders based on zip name and combining similar zips

I have been searching for a way to bulk extract zip files in a directory and extract them into individual folders based on their zip file name. I found: Extract all Zip's in a directory (incl. ...
-1
votes
2answers
43 views

How to move files with a specific file extension from within a parent folder as well as its' subfolders to a new folder

I want to move all files with extensions such as: .JPEG .MP3 .MP4 .MOV .AVI .PDF .PSD .WAV .TXT ...to new parent folders named after the extension of the files contained therein. Currently I have too ...
0
votes
1answer
16 views

File counter is not working right in batch file

I want to have a loop in a batch file and in every execution i want to count the number of the files in a folder. The problem is that the counter in fisrt execution is always unknown and makes the ...
2
votes
1answer
26 views

How to create a batch file for this issue?

I need help making a batch file that will create a folder and then extract a cabinet file from a Windows installer file and then run a DISM command to install said extracted update. Below is a list of ...
0
votes
2answers
3k views

Copying a set of local files to FTP server

I want to copy a set of local files to ftp://124.30.124.230 (it will ask username and password). I want to do this work on 400 systems. I have planned to do this work by creating a batch file and ...
-1
votes
0answers
14 views

Using vlc to batch generate snapshots say every 2-3 minutes or os?

Is there a way to batch generate snapshots every 2-3 minutes or so in Debian. I have a video of approximately 15 minutes and while I could use hotekey 's' to manually generate snapshots . Using vlc 2....
0
votes
3answers
45 views

Is it possible to kill a process on its startup? [closed]

I have to run a program, a virus scanner, on my work laptop. It is awful, so amazingly bad that it slows down everything else I try to run. It's made me so much less productive - however, due to ...
0
votes
0answers
45 views

Unpacking and then repacking a war file using batch command is increasing the size of the war file

I have a war file named CheckIn.war. I use the following batch command to unpack and then pack the war file. I also use a java code to change a value in an xml file after unpacking. jar -xvf CheckIn....
0
votes
2answers
30 views

Advice for combining right-click context menu actions in Windows?

For windows 10 is there a method to combine context menu actions into one click. In particular, I'm after a method that will allow multiple anti-virus and anti-malware programs to scan a single file, ...
2
votes
2answers
39 views

Writing a batch file to copy network file and open it then close and loop

We have a file on the network that is regularly updated and I need it open and up to date, but when its open no one else can access it to update it for me. so I thought I might have a script that ...
0
votes
1answer
7k views

Shell files (*.sh) to batch file (*.bat) converter?

It's quiet tedious to convert shell scripts into batch files. Is there a way to automatically and easily perform .sh to .bat conversion or vice versa?
0
votes
0answers
28 views

How can I make a bat file run as admin? [duplicate]

I want make a bat file to connect/disconnect a LAN connection. I know I use this code: netsh interface set interface name="Local Area Network" admin=enabled or this: netsh interface set interface ...
55
votes
17answers
236k views

Run a batch file in a completely hidden way

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 ...
-1
votes
0answers
19 views

How do I make a generic BAT file to global add/delete printers from one server?

How do I make a script to global add/delete printers? I have tried using below but I keep getting a syntax error or some other error. @echo off set /p _global="[a]dd/[d]el :" set /p _print="Printer ...
3
votes
1answer
18 views

Unable to find local files when using FTP

I'm trying to create a plain FTP file and a batch file for my colleagues to use to upload som zipped files to a database. The problem I run into is, when connected to the server, I cannot reach my ...
15
votes
11answers
73k views

Why won't cmd exit after execution of batch file?

Why won't cmd exit after execution of batch file? I have tried: "C:\Program Files (x86)\Java\jre6\bin\javaw.exe" -Xmx1024M -Xms1024M -jar Jilko.jar and @echo off "C:\Program Files (x86)\Java\jre6\...
0
votes
1answer
13 views

input same line as echo batch file

Cannot seem to get this exactly right, trying to setup a batch file to do some network commands, such as ping. I have the following code: echo Please enter the IP Address to TELNET echo IP Address: ...
1
vote
1answer
34 views

How do I shift the execution of a batch file from one CMD to another CMD?

This is my batch file script: ::opens new cmd in admin mode powershell.exe -Command "Start-Process cmd -Verb RunAs" ::this needs to execute in the previously, newly opened cmd wmic product where ...
2
votes
2answers
7k views

Automatically responding yes to forfiles

I'm looking to automatically delete files older than 7 days old with forfiles. The code below works when I do it manually and respond yes to deleting the files. How can I incorporate the yes into ...
0
votes
0answers
13 views

Update windows shortcup lnk

We got a shared folder sharedF where anyone can add file shortcut. Usually, people add the shortcut linked from a network folder sourceF. The problem is that users get sourceF connect to their ...
0
votes
1answer
18 views

Windows - Set a Printer's Processor Programatically via batch or regedit

is there a way to automate the change of a printer's processor via batch file or a registry key \ policy ?
0
votes
2answers
20 views

list all files in all subdirectories, not current directory

Is there a way to list all files in all subdirectories excluding those in the current directory? dir /s /b lists all files, including those in the current directory. That is not what I want.
0
votes
3answers
4k views

Batch script to append record to csv files

I have a bunch of stock data in csv's that I am backtesting trading strategies on. The problem is that my strategy buys the open market price if a signal was found yesterday, unfortunately my data is ...
1
vote
1answer
25 views

Windows batch script X files from one directory to another

I'm not sufficient at writing any kind of batch script so I kind of mashed up this solution from elsewhere. It does the job; copies files from a directory (and all it's subdirectories) to another ...
2
votes
2answers
621 views

Why does this batch script terminate unexpectedly?

This batch script terminates when %CHECKCONTINUE% is given a null value by not inputting anything on line 13 (SET /p CHECKCONTINUE=Okay to continue? (y/n):), why is this? @ECHO OFF SETLOCAL TITLE ...
2
votes
2answers
24 views

Block-unblock or create-uncreate reg keys prevent rewriting or accidental or deliberate deletion, using the command line

I have this method to block registry keys and prevent accidental or deliberate deletion or rewriting, either by a user or by malware example of keys: "HKEY_CLASSES_ROOT\Applications\cmd.exe" "...
8
votes
8answers
58k views

Spaces and Parenthesis in windows PATH variable screws up batch files

So, my path variable (System->Adv Settings->Env Vars->System->PATH) is set to: C:\Python26\Lib\site-packages\PyQt4\bin; %SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem; %SYSTEMROOT%\...
0
votes
2answers
73 views

set environment variable from batch

When I set a environment variable envir using setx command, It seems to not actually 'set' in environment. setx envir "windows" if 1==1 ( setx envir "unix" ) echo %envir% set The set command ...
1
vote
3answers
112 views

Converting NEF files to JPEG

What is the fastest way to batch convert NEF files (Nikon RAW) to JPEG? I'v tried FastStone Image Viewer and Nikon's Capture-DX on my RAM-drive but they appear to be very slow, although Capture-DX ...
0
votes
0answers
21 views

create file type and change default application by script/regkey

We have some software which uses the *.opl file format, which isn't recognised by Windows. We can change the file type but when logging off and back on again, the default application is lost, even ...
5
votes
2answers
2k views

mkvextract and batch extraction

Is there a way to extract all attachments in a mkv file via mkvextract with batch? Otherwise I need to give the name of all attachments one by one.
0
votes
0answers
22 views

Batch to change Proxy settings based on Wireless SSID [duplicate]

I have created a batch file that changes the proxy settings based on the wireless SSID connection. I have set it to the Task scheduler, so that whenever I am logged in at the office, the proxy ...
1
vote
1answer
27 views

Multiplexing video and audio with FFMPEG from sub-directories using a Windows Batch Script

I'm trying to figure out a batch script (windows based) which will allow me to multiplex some .m2v and .wav files that exist in a load of sub-directories (within one single main directory). They need ...
4
votes
3answers
15k views

Batch delete: Access is denied

I'm having issues with the del command in a batch file. When it gets to the delete step I get the message "Access is denied". My batch command looks something like this. set destPath=\\Public01\Appl\...
0
votes
5answers
2k views

Open multiple applications sequentially via Window batch file

To test an SSD RAID setup I would like some way of scripting the sequantial launch of a number of programs. How can I do this? With a Windows batch file I can only either open all at once og wait ...
21
votes
1answer
15k views
0
votes
0answers
28 views

Formatting similar MSWord (pasted from MSExcel) tables in batch

I've got a lot of similar spreadsheet (same dimensions, different numbers) in MS-Excel, like this : To present them in my report in MS-Word. I have to format them in this way : To avoid ...
1
vote
1answer
3k 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 ...
3
votes
1answer
29 views

Cannot use dot before redirect to file in batch file

I cannot tell why the context of an if would change my ability to run the same code. While this: @SET FILE_MAIL_BODY=mail.body @echo The build FAILED because of a lock on the 'classes' folder (or ...
0
votes
2answers
34 views

Use a batch file to control monitor position?

Windows 10 has a way to customize your display settings with the physical order of your multiple monitors, in the pictures below you will see what I mean if you don't know already. I want to use a ...