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
2answers
163 views

How do I get 64 bit %ProgramFiles% in batch file that is run from 32 bit application?

Problem is that in my case, a batch file run from 32 bit application have %ProgramFiles% expanding to "C:\Program Files (x86)".
1
vote
1answer
161 views

Batch copy gives errors, xcopy works fine

I am writing a general file backup program. It searches the drive for files matching a set of types and then writes them to a folder on the desktop. I wrote it using xcopy on Windows XP but upon ...
-1
votes
1answer
32 views

Is there a way to read a simple one line asp page using a batch file?

I have a simple asp page in which i write an ip address, and nothing more. Now i need a batch file to read the contents of this page and pass it to a variable. I'm not good with batch files but ...
1
vote
2answers
151 views

Batch Capture incoming Netstat IPs as variable

I'm trying to figure out if there is a way I can capture (and if possible, log) the ip addresses displayed from 'netstat' command. I'm trying to make a script that waits for a ping from a specific ...
0
votes
2answers
2k views

Sending input to command line program from text/Batch file

I am a mechanical engineer with some hand on Programming in VC++. Our industry uses a DOS program & that requires 8 user inputs. We have to feed it manuaaly every time. Does we can automate this ...
2
votes
2answers
239 views

Using wildcards with the rmdir or rd command

Let's say there are some folder in the D: drive: D:\Air D:\Abonden D:\All D:\Whatever I want to delete all folders starting with "A" (including all subfolders and files). I tried this command: ...
0
votes
3answers
499 views

Handbrake: How to batch convert videos including resize?

I am using the latest Handbrake v0.9.9. I would like to batch convert 200 video files from format 800x600 to 640x480. The problem is, if I add the videos to the Queue (clicking on >Source >Folder), ...
1
vote
0answers
845 views

Running Batch file from servers network share - using servers local user account

I am trying to create a script that could be run from servers network share and promt me to type servers local username and password as credentials. So, .bat file is located at ...
1
vote
1answer
142 views

batch converting from XLS to windows CSV on a mac

I'm using OS X and have lots of these XLS files that I need to format as a batch operation. I need them in "Windows CSV" format, but I can only seem to get them batch converted to Mac CSV... I am ...
8
votes
2answers
1k views

How do I make a batch file be able to run on other computers

When I create a batch file on my computer to execute start c:\Users\________\Whatever\..., it works on my machine. How can I get it to work on someone else's machine, since their username isn't my ...
0
votes
1answer
675 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 ...
-2
votes
1answer
106 views

How to Copy files and folders from one network share to another

I have a file in one network shared folder \\170.23.23.34 and i want to copy the files to another share \\170.23.23.36. What should be the batch script for the same.
1
vote
2answers
81 views

How to kill a process based on the partial content of its window title?

I start a command window with a similar command: start "DUMMYCOMMANDWINDOW" I can then close the window using this command: taskkill /FI "WINDOWTITLE EQ DUMMY*" /f /t What I'd like to do, ...
0
votes
1answer
327 views

How to batch multiplex audio and video track files with ffmpeg

I think that everybody knows that problem about downloading 480p & 1080p videos from Youtube, and that the only way available for many Download programs is to download the Video and Audio Tracks ...
0
votes
1answer
37 views

Kill all internet explorer's belonging to the current user

What's the proper way to shut down all of the instances of internet explorer for the current user using batch commands? I have this. There can be multiple users logged into the same computer. What am ...
0
votes
0answers
307 views

CMD/ADB - Autorun script to search, copy, and paste a file from android system to flash drive

I've looked around and can't find anything that answers my question. This is my first question, so any tips or thoughts are welcome, as well as an answer :p As explained in title, i want to create a ...
0
votes
2answers
1k views

Add registry key entries using batch file [duplicate]

How to add the below keys using pure batch file? [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Server] "DisplayName"="Server" "DisplayVersion"="1.2" ...
0
votes
0answers
63 views

How to make Batch file to give a message when exiting?

Code: @echo off start /wait /b echo hi > message.txt pause exit When you click the batch and type exit, you the message saved. My problem is, if you exit by click " X " button, then no message ...
-2
votes
1answer
64 views

Batch file to check the size and print the outout

I am trying to make a batch file that will check the size of f1.txt file. If the size is 1118, then "No Changes" will be displayed. If not, it will display "The file has been changed." @ECHO OFF set ...
1
vote
1answer
44 views

Resize/crop multiple files while preserving certain areas?

I have 176 JPEG images that are 450x800 in size, and was wondering if there was a way to essentially resize them, but while preserving their content in certain areas (currently I'm only hoping for the ...
1
vote
1answer
33 views

How do I convert a batch of audio files on Windows?

I have a folder structure like this: -dir1 -subdir1 -subdir2 -file1.wav -file2.wav -dir2 -etc... Inside the folders are thousands of audio files that need to be ...
0
votes
0answers
47 views

Photoshop batch generating all variants from 4 basic modules

I have 4 different modules: Hat, gloves, t-shirt and coat. I have different variants in hats (black, white, and blue), different variants in gloves etc. Each variant has a picture (transparent png, ...
3
votes
1answer
286 views

Creating a batch OR .bat file to linearize and merge PDFs using QPDF.exe

I am trying to create a batch OR .bat file that will linearize MULTIPLE PDF files. I already have a script I commandeered that uses PDFTK that sends PDFs to the 'sendto' folder where they are ...
1
vote
1answer
166 views

Remote Registry with alternate credentials from the command line

Sometimes, when I'm teleworking from my personal laptop, I run into problems with my SmartCard reader while trying to connect to systems that are configured to enforce SmartCard usage. The usual ...
0
votes
1answer
95 views

Window Batch file - Current folder name gets truncated

On my Win7 x64 box, when I run this command to find the current folder name for %* in (.) do echo %~n* it works for folders with alpha characters. However, for folder names that contain numeric ...
0
votes
1answer
739 views

Running Windows Batch File without Popup [duplicate]

I am trying to run a bat file on startup (running Windows 8.1) that will change the permission of the temp folder and then run dropbox. The bat file executes properly on startup and does what I want ...
1
vote
0answers
47 views

Large job Print automation

I regularly need to print documents off to send to a list of people. Each person n needs: The nth page from a Word Document All pages of an Excel Document (same document for every person) All ...
0
votes
1answer
517 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
0answers
113 views

Domain batch script won't map network drives

I have a user who's workstation has started refusing to map the network drives. We are on a Server 2k3 domain and use batch files to map network drives. The user's workstation is Windows 7 Pro. ...
2
votes
1answer
37 views

How can I add a character to folder names using batch

I've got a series of folders on a Windows server which are a numerical sequence 92001, 92002, etc. and I need to add a '0'at the start of all these folders. Rather than do this tedious task manually ...
0
votes
1answer
174 views

How to generate automatically ODT documents from libreoffice using variables

I have an ODT certificate template which I need to customize with a few elements (name, surname, date, etc.) before printing it. So I would be able to fill it with the data provided in an external ...
1
vote
6answers
1k views

Reduce jpeg size/quality for many files [duplicate]

I'm curious is there any faster way to reduce the size of jpeg files. My jpeg files are about 6MB per file. I open each file in a simple Paint program and press Ctrl+S to resave the image. File ...
1
vote
1answer
47 views

How can I recursively identify non-searchable PDFs and copy them to a folder?

Further to an earlier post which provided a script solution: From my question it may be possible to tell that I am a computer user and have no programming knowledge. I have hundreds of searchable ...
0
votes
1answer
425 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
0answers
85 views

How To Properly Get The Drive Letter of a Mounted VHD in batch script

How To Properly Get The Drive Letter of a Mounted VHD in script. Is it possible? list volume select volume <volume_number_of_attached_VHD> assign letter=v exit in this part of script it's ...
1
vote
1answer
347 views

Change registry permission of 3 keys does not work with regini

I'm preparing a batch script that should help me to remove 3 keys from the registry. Unfortunately nobody has permission to edit the keys, except for TrustedInstaller. To execute my reg file that ...
-1
votes
1answer
68 views

Combining same name pdf files together from different folders

I have two folders, and both folders have around 20 thousands PDF files. Folder A x.pdf, y.pdf, z.pdf Folder B x.pdf, y.pdf, z.pdf Now I'm in need of a software or a script to combine those ...
0
votes
1answer
75 views

Write a .bat file to select a certain portion of an output of a batch command into a batch file variable

If I run the following command on my windows 7 system (where cable is the name of my network adapter) netsh interface ip show ipaddresses cable I get the following result: Address 10.17.179.17 ...
0
votes
3answers
387 views

How to display “Please Wait” while GPO startup script is running?

I have a GPO that calls a batch file as a startup script (Computer Configuration -> Policies -> Windows Settings -> Scripts -> Startup) which takes a moment to finish what it's supposed to ...
1
vote
0answers
53 views

Batch window's colors are screwd up by Node.js and related commandline services

I run node.js from a batch file and whenever some command that has colorful output it screws up my batch window's default colors. ^ Here it's debug that does it, but any command that has colored ...
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
0answers
32 views

command line needed for creating task with eventID

I want to schedule a task through cmd, the task has to run a .bat file when my WiFi connects. I have manually created a task which does this but I want to do this by command line. I tried this ...
0
votes
1answer
72 views

Scheduled task doesn't run when WiFi connects(trigger)

I've created a scheduled task which should enable my hotspot when my wifi connects to a network, only, it doesn't do what it should do. I've tried both basic task and task with: -'Event' as the ...
0
votes
1answer
341 views

Schedule a .bat file to run at a certain time/within a certain amount of minutes

How do you schedule a task to run a batch file at a certain time/within a certain amount of minutes? I'd use at 12:34 C:\example.bat but unfortunately the AT command is deprecated.. I'd like to use it ...
2
votes
1answer
156 views

Turn on WiFi radio through CMD

I'm questioning if it's possible to enable your wifi card/antennae/radio with a CMD command, like "wlan enable" or something? I would like to do this so if someone forgot to turn on his wifi, this ...
0
votes
1answer
67 views

How do I convert avi and mkv to Mp4 while preserving quality using ffmpeg?

How do I convert avi and mkv to Mp4 using ffmpeg? I would like to preserve the quality of the video during conversion as best as possible.
2
votes
2answers
88 views

what is %username% in FTP

I just made a script to upload important files, but there are more then 1 user on my computer and I want it to upload the user that is using the program.. so like in cmd I tried to do something like ...
0
votes
1answer
54 views

how to use Null is Batch script

I working on small program to update the configuration of small program, I'm new to batch script, user need to enter desired input to go to desired program and I have 5 set of programs with in the ...
0
votes
1answer
169 views

BATCH file to Merge multiple text files and preserve names

I have the following text files: apple1.txt apple2.txt apple3.txt water melon10.txt water melon11.txt water melon12.txt I'd like to merge all apples into one txt file - apple_all.txt and all water ...
0
votes
1answer
68 views

Replace video track in MKV with track from different MKV file

I have two MKV files with the same movie and I want to replace video track in the first file with video track from the second file, using commandline (so it can be used again with different pair of ...