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
1answer
11 views

CMD ping requests not alowing more than 1000 bytes to be sent

If im trying to ping say google.com on cmd, I can do say "ping {IP ADRESS} -T -L 1000" I get normal statistics But if I do anything more than that, say "1001" I get a request timed out. I know that ...
-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
29 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 ...
0
votes
2answers
19 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 ...
-3
votes
0answers
34 views

I want to write a batch file to selectively delete a folder from list of folders

Image below shows the output/command line interface of what i am trying to achieve.
0
votes
0answers
18 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
21 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 ...
0
votes
1answer
23 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 ...
0
votes
0answers
24 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 ...
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, ...
3
votes
2answers
48 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
22 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
30 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 ...
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
33 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
0answers
35 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 ...
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
1answer
25 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
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
34 views

Batch clear AVI properties? [closed]

I have a number of files in a nested directory structure with over 100 directories in it. I'd like to clear the media properties/metadata (i.e. Artist, Title, Album, etc) from the AVI files (and only ...
-4
votes
2answers
49 views

GUI for my batch program? [closed]

Okay! So I coded up a little artificial intelligence in a batch file, (work in progress), and I was wondering how to make it look... what's the word.. OH YEAH. Presentable. Batch files look terrible ...
9
votes
3answers
439 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 ...
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 ...
0
votes
2answers
38 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 ...
1
vote
1answer
60 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 ...
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
14 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 ...
0
votes
0answers
18 views

How can I batch resize PDFs on OSX?

I have multiple PDFs, each at A4 size, and I need them all to be resized to A5. I don't want to lose any image quality / resolution, I just want the page size to be changed. I can resize an ...
0
votes
2answers
32 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 ...
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 ...
-4
votes
0answers
63 views

How to remember parent process in nested batch scripts?

Can I remember the parent process that caused the child, in the sense of a return to the original script Batch as the directories are stored and restored PUSHDIR command POPDIR command? It may not be ...
0
votes
2answers
21 views

Prefixing output text in batch

I am trying to create a remote, WMI query script that will query a bunch of machines and tell me the MemoryChip configuration information. This way, we can find out what machines physically have 1 ...
0
votes
2answers
71 views

Removing Line Breaks From CSV for Proper Excel Import

So I've created a batch script that outputs some text to a CSV. When I open the CSV in Notepad, it looks like this, which is how I want it. 173030,8,2793,2821244 173032,1,2793,2820692 ...
0
votes
1answer
78 views

Every 5 min cron job between specific time (Windows server 2008 and batch file)

Previous colleague set up cron job every 5 min for 24 hrs. Now I need to modify this only running between 7am to 7pm. I had never learned cron job so I googled and tried but it didn't work. Task ...
-1
votes
1answer
30 views

Renaming files with batch [duplicate]

Is it possible to write a .bat-file that changes the names of all the files in a folder? For example: if I have a bunch of jpegs in a folder that have random names: File1.jpg ScreendumpA2.jpg ...
0
votes
2answers
22 views

Batch File : Not able to concatenate a loop counter value to a constant string

This is in continuation with the question here. Batch Script: Concatenating multiple files in multiple folders into one file I have 20 files with name 'new.csv' in 20 folders in the same parent ...
0
votes
2answers
64 views

Batch Script: Concatenating multiple files in multiple folders into one file

I have about 20 folders and all of them have around 100 csv files each. I want to combine all of them together into one file. How should I do this? I know about copy command to combine files of one ...
1
vote
1answer
61 views

Batch file can't delete a file “that's in use” but the file doesn't seem to exist?

I have this simple batch script: cd "C:\Users\me\AppData\Local\Microsoft\Windows\Temporary Internet Files" del *.* /f /q pause When I run it, it tells me that it cannot delete \Temporary Internet ...
0
votes
1answer
35 views

Delete last line always starting with 'TRAILER' from a text file in windows batch script

I want to remove the last line from a text file using a windows batch script. the last line will always be like 'TRAILER|'. How can i achieve that. My .txt file looks like : 1220|6963|TRUCK|5760| ...
1
vote
1answer
48 views

Mass rename folders in Win 7

Suppose a folder named 1234-xyz. I would like to rename this folder to xyz - 123. I have a ton of these folders, so going through them one by one doesn't make sense. What is the best way to do this? I ...
2
votes
1answer
31 views

Opening A File With Batch Programming

So i'm making a launcher for a game with a modded version and a vanilla version. I finally was able to open the game, but the game does not respond! I used: start "Game Title" "Path\Game.exe" The ...
3
votes
1answer
49 views

How can I move the oldest file in a directory repeatedly using a batch script?

How can I move the topmost (oldest) file in a directory one by one in a batch script (Windows 7)? I am using this script: :backup move something somewhere timeout 36000 goto backup I want to ...
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 ...