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

2
votes
1answer
34 views

How to rename an executable from its details

I have loads of .exe files that got renamed to file1.exe, file2.exe, etc. When you look at a file's Details under Properties (in Windows Explorer), it has the original file name under "Product Name". ...
2
votes
1answer
16 views

Checking if a key is present on the windows registry through batch file

I work as IT Support for public service. Some of the jobs we have to do on a regular basis is to install some software developed by our own developers. We usually do it as procedures, in which in ...
0
votes
0answers
6 views

VBS unzipping - object required: 'objshell.NameSpace(…)'

I know very little about bash or vbs. I am trying to make a script that will automatically unzip a zip called 'dungeon.zip', which contains a little game I programmed. I want to unzip it to a folder ...
1
vote
2answers
39 views

Need a batch script to copy data from A.csv to B.xls

I'm a newbie to batch scripting and need help. I want to copy the contents of a csv file A.csv to the first worksheet named "GenData" in a existing XLS file B.xls. B.xls contains some macros in it's ...
1
vote
1answer
8k 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 ...
0
votes
0answers
13 views

Extracting Lines below Specified Words in batch script and change the format

I have a "test.txt" file in the format of: xdfdfdf ydffddf zddfdfd blah ... WordA 12 23 45 ... 32 12 65 xdfdfdf ydffddf zddfdfd blah ... WordA 54 76 67 ... 68 31 85 xdfdfdf ydffddf zddfdfd blah ... ...
0
votes
1answer
21 views

Script to enable autologon for users on a domain won't work unless I run it twice

So I'm having an issue with a script that enables autologon domain users. For some reason I have to run it twice for the option to be enabled on the computer. The Script: @echo off REM Set variables ...
-1
votes
0answers
16 views

Does any free software exists for batch downloads of movies or music? [on hold]

Specifically, I am looking to pass a file of titles of the music or movie to the program and then let it find and download the related files.
0
votes
1answer
24 views

How to find out if it's the first boot on the current day

I have a batch file in my auto start which should behave a bit different on the first boot. How can I find out if it's the first boot on the current day via Windows cmd? May be there's some way ...
2
votes
3answers
2k views

Add folder name to beginning of filename

I have a directory structure as below: Folder > SubFolder1 > FileName1.abc > Filename2.abc > ............. > SubFolder2 > FileName11.abc > Filename12.abc ...
-3
votes
0answers
38 views

I want to write a batch file to selectively delete a folder from list of folders [on hold]

Image below shows the output/command line interface of what i am trying to achieve.
0
votes
0answers
20 views

Upload data in .txt file to SQL database through ftp in command line

I have a table in .txt file with header, and an empty table Final_Beta_Table with header only in SQL database. It's a NETEZZA database and there are many other tables in it. How can I upload the .txt ...
0
votes
0answers
23 views

ProcMon - strange error when running from a batch file

I have a batch file which uses ProcMon to monitor another task and runs in a loop. Every 20 minutes I terminate procom and restart it with a new datetime-named backing file. This is to keep the log ...
1
vote
1answer
3k views

Run an ftp batch file from within a batch file

I have a scheduled task which executes the commands in my file ftp.txt every day. The file can be seen below, it connects via ftp to my site and puts 3 XML files on to my web server. command: ftp ...
0
votes
0answers
28 views

How to batch print SWF files to PDF?

I am using windows 7 X64. I have installed Adobe Acrobat, so that I have a virtual PDF printer. I have also install the adobe flash player on the system. I open the SWF file using the flash player, ...
1
vote
1answer
21 views

How to batch resize many photos - but keep timestamp intact?

I have thousands of photos in many folders. I want to batch resize them to e.g. 3000px on the longest dimension and keep the timestamp intact. I have used the wonderfully simple tool Phatch to resize ...
1
vote
1answer
2k 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 ...
0
votes
2answers
41 views

Any problems from copying system32 into syswow64?

I ran a .bat file as an administrator. The .bat file said to copy all .dll files from the current directory to the syswow64 directory. Something like: copy *.dll c:\windows\syswow64 Unfortunately, ...
0
votes
2answers
271 views

Save all WLAN profile names stored on my machine, into a textfile

when I'm using the netsh wlan command, a similarly output is shown. C:\Windows\system32>netsh wlan show profiles Profiles on interface Wireless Network Connection: Group policy profiles (read ...
3
votes
2answers
49 views

How to open a batch file and execute a command AFTER opening command prompt

I am trying to create a batch file that first opens command prompt and then executes "prompt $t$gEnter Command Here$g". I have tried starting it with "%windir%\system32\cmd.exe" and then using ...
1
vote
1answer
23 views

Batch file merge two text files

I have two text files and I need to merge them like this: text file 1 [][][] [][][] text file 2 ****** ****** ****** output ****** [][][] ****** [][][] ****** I have already looked ...
-1
votes
0answers
33 views

How to download all my friends facebook profile pictures at once, named as their names?

Anyone know if someone has made a tool to do this? A browser extension? A python script? An app? I'd like to have the current profile picture of each of my facebook friends downloaded into a folder ...
7
votes
3answers
40k views

Using Date and Times in a batch file to create a file name

I am running a program from a batch file, which when it is done performs an automatic backup of my MySQL database. I would like the batch file to create a different back up for each run, so I can ...
1
vote
0answers
20 views

Command line edit of parental controls

I'm new to windows administration and pardon me if I write something stupid :) I've been given a task to enable installation of specific apps on win7 user account with parental controls restriction. ...
0
votes
1answer
35 views

How to receive a parameter in a batch file

I have asked a question, Use an environment variable to point to an "Open With" program, which received a fantastic answer. To add myapp.exe, residing in %MYAPPSDIR%, to the Open With ...
2
votes
1answer
26 views

Batch script is adding funky characters when a command gets executed

I have this script and when I try to execute it, a bunch of random symbols show up in the command prompt: cd "X:\folder\subfolder" svn update pause I have no idea what those symbols are called or ...
1
vote
0answers
34 views

Delete all files and folders in a specific directory older than 1 day except one folder with bat file using forfiles

Hello I want to delete all folders, subfolders and files older than 1 day in a specific directory and leave one folder untouched with the forfiles like the command below: forfiles /p ...
1
vote
0answers
26 views

Delete parts of sequential files in folders in windows

I need to find a way to delete parts of sequences of files. For example in specific folder I have several subfolders, which contain: blabla_0001.jpg blabla_0002.jpg blabla_0003.jpg blabla_0004.jpg ...
0
votes
1answer
17 views

How to delete the profile AD attribute using dsmod or similar?

As part of a user management batch script, I need to delete the profile value from an AD User object. The syntax I'm using is as follows: dsquery user -name TEST | dsmod user -profile "" It ...
0
votes
2answers
227 views

batch file to remove and reassign drive letters

I have what I believe to be a unique issue. I don't do a lot of work with batch files, but I think that would be my best option. Here is the situation. I have special software that looks for a ...
13
votes
4answers
17k views

How to batch combine JPEG's from folders into PDF's

I have a about 500 folders with images inside. Is there a way I could batch convert this so that I get .pdf files that contain all images inside as pages? EDIT: There should be 500 PDF's created, ...
0
votes
0answers
42 views

Batch file or script to telnet to multiple hosts, log initial output then close and test next host

I have a large list of IP addresses from a database that I need to sanitize and determine which type of host (it'll be one of 2 device types) each IP address relates to. Is there a way of using a ...
9
votes
5answers
21k views

Windows script to copy some text to the clipboard?

I am using an application that requires several attempts to log in (because of overloaded servers). This app has no "remember my password" feature. Therefore, I would like to make a script ...
1
vote
2answers
365 views

Batch file rename script swapping substrings in filename?

I have a group of files named like title_december_word1_word2.png and want to iterate through the directory and swap word1 and word2 within each file. i.e. go from button_december_state_pressed.png ...
1
vote
1answer
60 views

Recursively delete files that match file name (PowerShell script)

I've been converting my old batch files to powershell scripts with decent success. However... I can't quite figure out what would be the best and efficient way to do it in this case. Here's the batch ...
0
votes
1answer
26 views

Starting mongoDB without a visible CMD [duplicate]

I have a batch file that looks like this: del db.log start /b mongod --dbpath %~dp0 --logpath db.log It should delete the existing log file, and then start mongodb without creating a new cmd, ...
1
vote
0answers
14 views

schtask Activate task when specific user login

I want to create a batch file that creates a scheduled task to run a .cmd file when a specific user logons. So far I've come up with this: @echo off schtasks /CREATE /RU %username% /TN "TaskName" /TR ...
9
votes
3answers
445 views

How to use “<<” in batch file or command prompt?

I know what >> is used for, it write all messages into a file instead of screen. And I guess << do reverse, I try it and receive a message: << was unexpected at this time. Please ...
0
votes
1answer
21 views

Need to move lots of consistently named files to certain folders (Windows 7)

I need to populate a bunch of folders with files of various types. The destination folder structure is as follows YEAR > COMMITTEE_NAME YEAR > YEAR MONTH COMMITTEE_NAME EX: 2015 > ADP 2015 > 2015 ...
0
votes
0answers
15 views

How can I run multiple sets of pipe-linked commands in parallel?

I want to run several sets of tasks connected by pipes in parallel like so: app1 "input_file_1" | app2 > "output_file_1" app1 "input_file_2" | app2 > "output_file_2" ... What is the cleanest ...
0
votes
2answers
39 views

Windows Batch commands to copy file to multiple subdirectories

I have 2 files file1.txt and file2.txt that I want to copy into a folder structure like this parentfolder subfolder1 destinationfolder subfolder2 destinationfolder ...
0
votes
2answers
33 views

Batch check for *.reg but only if = 1 file

I am looking to basically check if a batch file is present by wildcard *.reg, but I would like it to error if there is more than 1 .reg file. This is the code I have been trying to use, but my batch ...
3
votes
2answers
4k views

Batch convert all html files in a directory into pdf files in windows?

I see one solution so far: http://www.htmldoc.org/ Are there any more out there which are suggested?
1
vote
2answers
34 views

Possible to write a longer than 2-line txt file using batch code? [closed]

I am working on a batch project and at the moment I am having some difficulty with making a batch file put more-then-one/ two lines of data into the txt file, for example, I have tried: echo ...
1
vote
1answer
61 views

Can't run batch file in Server 2012

This site rocks! I am trying to run a simple .bat file on Server 2012 that will ping another server, filter out all the lines except one, and then write to a file for later use (I then want that file ...
0
votes
1answer
32 views

How to do this in all subdirectories in parent folder using batch script?

i am total noob for scripting so i need small help with this batch script... Here is script : @ECHO OFF SetLocal EnableDelayedExpansion SET par2_path="C:\PAR2\phpar2.exe" SET par2_redundancy=10 ...
5
votes
2answers
2k 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 ...
0
votes
2answers
36 views

Windows Batch file get filesystem info without elevated priveledges

I have a batch file that needs to check the filesystem and choose options for a program it's running based on the filesystem (which could be NTFS or FAT32 in this environment). For Windows systems I ...
0
votes
0answers
19 views

Batch Printing PDF's with Multiple Sizes

I am trying to batch print files that vary from letter, 11x17, and 22x34 paper size. The problem I am having is I cannot make the printer print on varying sizes of paper during the batch print. I ...
2
votes
1answer
105 views

How to bulk delete all disconnected devices from Windows 7?

There are many entries in the "Devices and Printers" window showing devices which are no longer connected. How can I delete these entries all at once, ideally on the command line? This picture ...