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

5
votes
2answers
738 views

Windows Explorer: Customize view settings via batch or shell-extension?

In folders with shortcuts (and junctions) I oftenly like to have mid-sized icons, sorted names and grouping by type. Alas, Explorer oftenly forgets these settings once I made them manually. The ...
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 ...
3
votes
2answers
263 views

unable to set local admin password using GP

I'm updating our local admin script which does not include server 2008 r2. Because 2008 and Windows 7 have same version Microsoft Windows [Version 6.1.7601] so I can't do a version search. I have ...
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?
2
votes
2answers
535 views

Batch command to move all files of certain extension

I have a script which uses 7zip to extract all rar files which is great. The only problem is then I have to manually go through the folders and move the .avi or .mkv files. The script I am currently ...
2
votes
2answers
726 views

use numeric variable to create a file name

I have a script which does not work: set /a num=0 for /L %%C in (1,1,31) do ( set /a num+=1 set day=%num% for /r %%1 in ("Folder\Day_%num%.txt") do echo %num% ) I ...
2
votes
2answers
899 views

Is there a program to reboot to safe mode

I'm looking for something like Bootsafe but with option to be run silently. Anyone aware of such utility or any special command to be run?
1
vote
2answers
244 views

Chrome clean-up batch script

I wrote a batch script that should automatically delete sensitive data but NOT nuke away everything. What my (shortened) script currently looks like set ChromeDir=%LOCALAPPDATA%\Google\Chrome\User ...
1
vote
2answers
280 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 ...
1
vote
2answers
919 views

How to disconnect/connect ADSL modem connection to ISP by command? (Windows 7 SP1 x64)

I want to write that command in a .bat file and run it by windows scheduler at certain times of night and morning. (for example: open connection at 23:00 and close it again next day at 9:00 ...
1
vote
2answers
608 views

Taskkill for all running processes that exist in a specific directory

I basically want to combine the following sets of commands. In other words I need to check to see if any executable that exists in c:\apps is running, and if any are, to kill them. Once these ...
1
vote
2answers
203 views

Skip hidden folders in .bat scripts

I am trying to find a way to get a listing of all files, without hidden directories. I have tried several variations of something like this: dir /b /s /a:-h z:\ >toc-z.txt but this only ...
1
vote
2answers
879 views

Filter a CSV file using Windows batch file

I have a file with 12 columns separated by ? I need to export column number 12 (NetBIOS Name) and append the whole row to a CSV file. Skip the first line that is the column description. The first 4 ...
1
vote
2answers
391 views

Batch image program to replace 2 colors?

I have a lot of .png images, and I want to replace a color to another color.. Is there a batch program to do that? I'm on Windows 7
1
vote
2answers
44 views

adding pre- and post- actions around an existing windows program?

There is a program I use all day long and it's data resides in a single, large file. I work at 2 different locations and sometimes also on the road and need current data. In the best of days I ...
1
vote
2answers
2k views

How to issue an rsh command to run in the background from a batch file?

How to issue an rsh command to run in the background? Example: Within a (Windows) batch file I call rsh 10.1.1.2 -lroot /etc/rtcinst/myscript.ksh, which runs on a remote unix machine. This script ...
1
vote
2answers
178 views

Single File Archive+Copy+Extract Deployment for PC

I've got some files on a machine that need to be archived, then copied over to another machine. On the other machine I need the files in a folder to be archived and removed, and then have the new ...
1
vote
2answers
256 views

Script or util to remove old backups

I'm creating a backup strategy for a sharepoint server I'm setting up. Have got a backup running daily. In the long term I'd like to keep: Daily backups for the last week. Weekly backups for the ...
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
43 views

Batch: How to forward data to new CMD instance as arguments

I'm looking to call another CMD instance and pass data to it from the parent instance. I'm aware of the general route of using variables, but it would not be feasible in this case as endlocal and ...
0
votes
2answers
28 views

How to extract second word of the string via windows batch

I would like to request an assist for this case. I want to get the second word of title so that I could set it as target file. set title=THE PROGRAM TITLE HERE
0
votes
2answers
81 views

%%f in a batch file with Windows 7 Professional 64 bit

I have a line like the following in a several batch files: FOR %%f IN (%*) DO something.exe %%f I've used them for a long time with no problem. I recently had to replace my hard drive and had ...
0
votes
2answers
37 views

Windows Batch File to move contents based on file type

I was figuring out a way to manage my downloaded files from chrome.I want that my pdf file should save in ABC directory, audio file should save in XYZ directory etc.I thought a way to do so through ...
0
votes
2answers
125 views

batch file to find a word, extract 2 line above the word and write it in diffrent text file

In my scenario i need to check my file (XXX.txt) for the word "SPOT". There will be few of SPOT word in the file. Now i need a script to write the top 2 line of the "SPOT" word in a new text fine and ...
0
votes
2answers
170 views

batch file to upload a file to a website

I have tried for days to upload a single file to a directory in my web site:I know I can use Filezilla but I want to automate this for some non-tech people. Just click an Icon that runs a batch file. ...
0
votes
2answers
196 views

Remove Recent Places from Windows 7 Favorites using Batch or Registry?

How do you remove the Recent Places shortcut from the Favorites side bar in Windows 7 using a batch file or from the registry? For example, when running a batch file to configure, add, and remove ...
0
votes
2answers
82 views

how to run a batch recursively

I have a parent folder (BIG_Folder), which contains many subfoldes (folder1, folder2, folder3 ...) in each subfolder a batch file exists, it is always the same (x.bat). I want to run all bats, ...
0
votes
2answers
214 views

DOS Batch - Get current directory whilst in a for loop

I intend to write a little DOS batch that creates m3u files for a given subdirectory structure containing sound files. The m3u file shall have the name '[Parent Directory].m3u' (where [Parent ...
0
votes
2answers
325 views

Run other cmd in bat like from it's own path

I need to run bat(fix.bat) in cmd batch file (let's say sample.cmd on c:) The problem is that despite of using: start /WAIT cmd.exe /C D:\dev\sys\fix.bat fix.bat runs like from parent command ...
0
votes
2answers
321 views

Printer bat script

I've been having some issues with a batch script that i have setup to add IP printers as local printers. It seems to be working just find on my own computer where i wrote the script but now seem to ...
0
votes
2answers
239 views

Creating Comma Separated Values in Batch Scripting

I have written a piece of code in Batch script which is somewhat like : ( wmic.exe /node:x.x.x.x computersystem get name wmic.exe /node:x.x.x.x computersystem get domain wmic.exe ...
0
votes
2answers
78 views

Duplicate Deletion Script does nothing

An associate of mine wrote a script for me that should theoretically delete files that have the same name, regardless of their file type. Specifically, it checks mp3, m4a, wma, wav files. However, ...
0
votes
2answers
1k views

Batch Printing TIFF Files in Windows

I am trying to batch print .TIFF files efficiently. I have found that I can drag files from windows into the print job queue window and it will print them right from there. With PDF's of varying ...
0
votes
2answers
116 views

.bat file overriding answer

When I made this batch file, when typing y and n for the first time it works fine, but as soon as I choose n, every single time I try inputting something, it opens up the 7000 songs wpl list then ...
0
votes
2answers
532 views

Rename and reverse the numbering of a list of files

In Linux, preferably using bash, what would be the best way to achieve the goal below? Say I have a series of numbered files 001.png, 002.png, 003.png What is the best way to move/rename them to ...
0
votes
2answers
63 views

How can i paste the data stored from clip and use it for a different command

I need to paste the result of clip command into netsh interface ip address FOR /F "tokens=*" %%i in ('ipconfig ^| find "IPv4"') do SET result=%%i echo %result:IPv4 Address. . . . . . . . . . . : =% | ...
-1
votes
1answer
43 views

How can I type certain days (such as Monday, Wednesday) in an easy way for the next 5 months without typing them one by one?

I am trying to input in a libreoffice calc file only Mondays and Wednesdays for the next 5 months, but I dont wanna do it typing the dates one by one. So..I thought I would type 4 dates like this: ...
-1
votes
1answer
1k views

“CACLS” is not recognized as an internal or external command, operable program or batch file

I have been using CACLS batch file many times and today it is not recognized. CACLS.EXE exist in C:\Windows\System32 and I have tried writing at command prompt: CACLS * /E /T /C /G Administrators:F ...
-1
votes
1answer
406 views

Batch or VBscirpt to copy only folder structure(Not Files) from one server to another server by giving folder structure as an separate input file

Example: Source: Server 1: C:\Folder1\Test2 C:\Folder2\Test3 C:\Folder3\Test1 Destination: Server 2: (Same structure above should be copied here with permissions) Note: In script, have to call the ...
-1
votes
1answer
563 views

I need a batch file that will be able to restart an EXE when the EXE only uses 10% cpu usage

I have currently been using this. @echo off set serverName=Server Restarter title %serverName% :restart TIMEOUT /T 900 taskkill /F /IM ServerLauncher.exe /T goto restart Edit: Right now I have ...
-1
votes
1answer
687 views

.vbs won't execute anything at all

I created short script to run .bat file on background but when i execute .vbs file, it seems like it is not reading my script at all. .Dos windows pops up and shutdown right away but my batch file is ...
-1
votes
1answer
3k views

Batch file to obtain system info of remote servers list with unique login credentials

I'm not familiar with scripting. I have a task at hand which requires to check server uptimes to make sure if they were actually re-booted when they suppose to. I was going through Google Search and ...
-2
votes
1answer
42 views

I need a batch to open an file whenever the workstation is unlocked

So the batch file I need has to open an excel file whenever the password is typed to unlock the computer.I know this thing can be done with Task Scheduler but I need a batch file because this action ...
-2
votes
1answer
410 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.
-2
votes
1answer
367 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 ...
-2
votes
1answer
74 views

Your AHK script for javaw priority?

I would like to know something for minecraft. Following your post here : How can I automatically change the priority of Javaw.exe when loading Minecraft? . Which AHK script you used for change the ...
-2
votes
1answer
491 views

Batch file delete duplicates, nested once deep

Yes, I did see: Delete duplicate files with Windows batch file But I was unable to modify it to check each subfolder of that I specify, I have: del "c:\...\Pictures\*\*-001.*" But it doesn't like ...
-2
votes
1answer
1k views

Batch - Using wget (or similar service) to pass a captcha request

I need to download this file... h**p://www.vhannibal.net/download_setting.php?id=1 ...using Wget from promt of dos of my Windows. Currectly i used GnuWin32 wget 1.11.4.3287......... when i put ...
-2
votes
1answer
317 views

How do I make a batch file that looks exactly like a command prompt?

I want to make a batch file that, when run, looks and works exactly the same as a command prompt, except that I can do something with everything the user enters (e.g. logging it). How can I do this?
-3
votes
1answer
32 views

Batch output does not convert version placeholder in result

So in this batch I want to make set /p pv="2.1.5" echo Program V : %pv% set /p rn="0.0.1 [Initial Release] , 0.0.2 [Some Blah]" echo %rn% set /p rn2="1.1.3 [New Things, Bug Fix & Improvements] , ...