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
0answers
45 views

sending keypresses to a process using nircmd

I'm trying to use nircmdc to send a keypress to a background process (without bringing it to front). More precisely, i'm tring to send Ctrl+Shift+S to notepad++.exe: nircmdc win postmsg process ...
0
votes
3answers
125 views

Batch Renaming files (and possibly switching parts of the name)

I am organizing 60,000+ images, and need to edit down their names. I would love to just do a batch rename, as this would likely take 60+ hours otherwise. The names are similar to what follows: ...
0
votes
1answer
126 views

Batch file to open 4 or 6 internet explorer screens and place them by dividing the desktop equally

I intend to write a script that can open 4-6 IE screens that can be automatically be placed on the desktop. So essentially all of them will get equal space on the desktop. I am aware of the command ...
0
votes
0answers
50 views

Batch script to mass rename by modify date

I'm trying to make a batch script to mass rename files by modify date and time of each file. I'm new at this and searching since this morning and nothing lead me in the good way. SHould I use xcopy, ...
-1
votes
1answer
193 views

Batch file to copy files from server to desktop according to date

I will explain what I´m trying to get up and runing. I have a folder on the server containing several subfolders and zip archives in those folders. The string of the server is like: ...
-4
votes
2answers
58 views

Is it possible to “reverse” a remote computer access session? [closed]

For example: I want to bait a scammer into accessing my throw-away computer, then flip the connection around so that I'm now accessing THEIR computer so I can wreck their scamming operations.
1
vote
1answer
97 views

Batch convert of Word docs with images to HTML

OK, here is my situation: I made a knowledge base for a company, they have about 500 word documents with screenshots in them explaining procedures and such. I can easily paste the text into the cms ...
1
vote
1answer
24 views

Autofix file extensions based on content

Is there an app/script what will peek at file content and try to guess the correct file extension? I have a bunch of files recovered from a backup and it's a mix of images, videos and documents. The ...
1
vote
2answers
177 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
221 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
34 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
167 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
3k 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
434 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
757 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
910 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
171 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
809 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
139 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
103 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
369 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
41 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
325 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 ...
1
vote
2answers
3k 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
65 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
74 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
45 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
37 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
49 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
387 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
210 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
99 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
889 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
48 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
692 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
118 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
40 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
217 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
53 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
489 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
97 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
371 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
88 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
82 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
625 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
59 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
36 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 ...