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

0
votes
1answer
44 views

Using a .bat file to pull a string from a text file within a zip folder

So, please bear with me. This is only the second batch file I've ever written and my first post anywhere on StackExchange. I'm writing a batch file that tells a remote server to run HP Array ...
0
votes
1answer
25 views

Server 2012 Modifying sharing privileges on a folder via script

I have recently been employed by a small company as a software engineer. I am stepping a bit out of my element and doing a bit of IT work for them as needed as well. Currently I am going over some ...
0
votes
0answers
53 views

Managing windows updates via Batch file

I have an instance of windows server 2012 and I am trying to get an idea of how to accomplish the following requirements via a batch file. Turn Windows Update to manual Change Import Updates to the ...
0
votes
1answer
30 views

.bat file to create a Library with icon in Windows 7 and 8

Is it possible to create a .bat file that creates a Library with an icon in Windows 7 and 8. Of course this can be done by following the already created tutorials online like Change Your Windows 7 ...
0
votes
0answers
33 views

Batch file with (Java invocation) wildcard expansion works on one Win 7 machine, fails on another

I'm using a Windows batch file to launch a Java program, using wildcard expansion to set a load of JAR files on the classpath similar to the below: java -cp "MyLibFolder\*" com.stupid.StupidProgram ...
0
votes
1answer
28 views

Could someone explain me the concecpt of “Recursion” in the context of the FORFILE Command (batch)

i'm having some trouble to understand the concept of recursion while reading the explanation for the FORFILE command. for the parameter /s it says in the reference: /s: Instructs the forfiles ...
0
votes
2answers
80 views

Using FORFILES to delete Folders older than 2 days

here is what i'm trying to do: Use the forfiles Command in a .cmd script to delete folders from a specified path that are older than e. g. 2 days on a win7 machine. Edit: The Situation is the ...
2
votes
3answers
44 views

How to batch convert multi-page PDF into individual jpg files

I found these posts on converting a PDF to JPG using ImageMagick. However, I have a 12 page PDF I want to convert into 12 separate high quality jpg files. Looking for the least tedious way possible. ...
0
votes
0answers
46 views

How to change the Start In property via CMD for an .lnk

Context: I have folders with presentations being created dynamically except currently an instance of our ppt&macro is being dropped in each folder with the presentation. The presentation will only ...
0
votes
0answers
17 views

“Print all” option causes unwanted cropping of .tiff files

I am printing multiple attachments using the "print all" option and .TIFF files are not printing fully, the edges are cut off. How do I prevent the "print all" option from doing this?
1
vote
1answer
31 views

Can't find Error in this syntax (If statement in forfiles batch)

no matter what i try, i don't get the following line in a batch file on my win7 64-bit machine to work: forfiles /P "I:\testroot" /C "CMD /C if /i @FILE==testung.txt del /s @FILE" The code runs, no ...
0
votes
0answers
38 views

Windows Login Script ignore UAC

I have a GPO that will launch a Startup Script for a .exe(Install Shield) silent unattended setup. However the user is currently being prompted to allow program due to UAC. I want a true unattended ...
0
votes
1answer
47 views

How to open multiple URLs in Chrome/Firefox and then save them individually?

If I have a .txt file containing a list of URLs, how can I get Chrome or Firefox to open them, one URL per tab and then save the page in each tab separately? Any platform will do: Windows, Mac, ...
1
vote
0answers
33 views

What Would I Call This? [closed]

When I'm working on a web development project or tutorial, I generally open the same applications, just with different files. I wrote a batch file for my current project, so I can open these with one ...
1
vote
1answer
32 views

batch script to swap words / rename files

could someone help me please? I have win xp and bunch of e-books named like this: Title - Name Surname.mobi and I need a BAT file to get: Surname Name - Title.mobi I am almost able to swap what´s ...
0
votes
0answers
20 views

I need a dynamic script for changing Host IPs depending on computer name that I can shoot over the network

Does anyone know how to make a Batch/Script, that I can modify, for looking up the host computer name and build the IP and gateway off of it. we have a simple setup of computer name refers to ...
-1
votes
1answer
46 views

What comand do I enter into my batch file to do this?

I want my batch file to find a string in a file and return it to the next line in my batch file. How can I do this? I've googled over and over but can't get the specific answer I need with the ...
0
votes
3answers
45 views

Batch script If command on a String

What is wrong with the following command lines for my batch script? set test=BE99012345678901 if %test% == "BE99????????????"( echo This number begins with BE99 ) Else ( echo This number doesn't ...
0
votes
3answers
47 views

How to add file extension to the files which do not have an extension in a specific folder using Windows command prompt?

I have folder (say c:\folder) in which many files reside. All of them are HTML documents. But some of them have not .html extension. I want to add them .html file extension using command prompt at ...
0
votes
0answers
39 views

How do I make this DWORD value entry in regedit using batch file?

How do I create this DWORD value using a batch file? Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION\ Value: mybrowser.exe Data: ...
1
vote
0answers
45 views

How do i add command to my batch file to go get a screen shot of a webpage and return and save to my desktop?

I'm just learning about batch files and such, and I have been googling round and round trying to find how to create a batch file with a command that will go to my youtube page link and take a ...
1
vote
1answer
45 views

Windows 8 Regedit requires absolute paths passed in for registry files

I was building a set of batch scripts for our automatic build/test system which runs across different operating systems to set some conditions for the different environments and I noticed that Windows ...
0
votes
1answer
28 views

Batch APPEND (RENAME) a specific keyword to set of files

I have few files namely - "a", "b", "c",etc.. I want to add the keyword: ".mov" to all files in that folder. Please suggest me an approach which script will be best suited for this - AppleScript, ...
0
votes
0answers
15 views

Change a part of a filename with random numbers

In my work i need to rename a filename everytime i want to do a server test, for example SAMO8608157H6AA1D15261.dec, i do need to edit the "1526" part in to the next digit or random number respecting ...
1
vote
1answer
45 views

When applications are slow to launch, how quickly is the process registered as running?

I'm looking at a problem with a java webstart kiosk app of ours. I occasinally get a support ticket saying that multiple instances of the app were found running at once on one PC. This causes problems ...
7
votes
2answers
690 views

Weird characters (´╗┐) at the start of a batch file

I am working with batch files in Windows, using both Notepad, and Notepad++. When I run the batch files, which all start with @echo off, I see the first line (when running on two separate machines) ...
0
votes
2answers
85 views

How do I concatenate files using a list and batch?

I need the equivalent of the shell command xargs < list.txt cat -- > compiled.txt as a Windows batch file. There is a directory full of text files (about 50 to 500 files) that I need to ...
0
votes
2answers
36 views

how to test empty parameter in a for /f loop

I'd like to read the current monitor resolution and set an environment variable. This works in WinXP, but not in Vista because wmic adds a newline at the end: FOR /F %%L IN ('wmic desktopmonitor get ...
1
vote
0answers
21 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
77 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
28 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
30 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
43 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
43 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
26 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
18 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
66 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
59 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
21 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
62 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
1answer
405 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
122 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
111 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
130 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
31 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
730 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
116 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
36 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
39 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
118 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 ...