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
783 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
269 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 ...
2
votes
2answers
593 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
742 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 ...
0
votes
1answer
786 views

How can I start multiple applications and instances using a Windows Scheduled Task?

I have three main applications. I am trying to start them automatically at log on in a specific order with a given delay. Here is an example of how I'd like everything to be: User logs in. Wait ...
0
votes
1answer
137 views

Find the character in line?

I am trying to find the some character in file using find or findstr, for example file contents like: "/test/abctest/abci.txt = c:\abctest\tst\work\workt.txt;abc_test1" "/test/abctest/abci.txt = ...
0
votes
1answer
613 views

Need a script to calculate batch file execution time

I need a script that I can call/include from another batch file (.bat) that can calculate the amount of time it takes to execute the first batch file. The script would be used for automation on both ...
0
votes
1answer
510 views

.Bat file that opens 2 URLs in different browsers then click on button located on the each page

I Would like to click on .Bat file that opens 2 URLs in different browsers (Firefox and IE) then click on button located on the each page (ex. Submit or login buttons) . This is what I got so far in ...
0
votes
1answer
658 views

batch remove pdf password using Acrobat pro 11 or other software

I have thousands of pdf with password encrypted and i want to remove the password in batch process, i tried acrobat 11 pro and created a batch action to remove, but its til prompt me every to enter a ...
0
votes
1answer
95 views

Mirroring a folder without deleting files in destination less than n days old

I would like to mirror a folder, but only delete files in the destination folder older than 7 days. Situation: Folder A is mirrored to Folder B. A file from Folder A is deleted I would like for ...
0
votes
1answer
815 views

Batch creation of previews of mp3 songs

I want to create snippets of mp3 songs using the first 30 seconds of each song. I want to apply the following actions on each mp3 song: Cut the first 30 seconds length of each song. Apply fade out ...
0
votes
1answer
2k views

Extracting last command-line parameter of batch file

I have to modify a batch file (written by a former employee) that uses a for %%f in (%*) do ( ... ) loop to operate on each command-line parameter. The new requirement is that a directory name will be ...
0
votes
1answer
125 views

what is the most common/efficient way of managing collections of batch files?

Problem: There are generally many examples of using batch (and bash) scripts in DOS shell to automate various programs. But I have found few resources that suggest ways to manage all the batch files ...
0
votes
1answer
811 views

How can I find and replace multiple blocks of text in multiple documents all at once?

I tried searching for this everywhere but couldn't find any solution. I have 100 html pages with various text to translate. I have also the translated text ready on a word document. So what I have to ...
0
votes
1answer
722 views

Find and move hidden files from sub-directories with batch file not working

I'm trying to use this batch file to find and move files... but it does not work on hidden files. What's missing? @echo off setlocal set root=E:\backup set dest=E:\Tmp for /f "delims=" %%f in ('dir ...
0
votes
1answer
1k views

running tshark command in windows batch file

I have written a batch file that runs a tshark command to filter fields from a wireshark pcap file and write them to a csv file. When i ran on the windows cmd CLI, i had to change the current working ...
0
votes
1answer
234 views

Why is my batch file doing nothing for 46 seconds before a forced quitting?

I have figured out what part of the code is doing this but dont know how to fix it... Here's the code: Set _Path=Private For /F "Delims=" %%I In ('Attrib "%_Path%"') Do Set _Attribs=%%I If ...
0
votes
1answer
463 views

Windows batch script for tshark

I am trying to make a Windows batch script for tshark. here is the tshark command I use tshark -V -r file.pcap -T fields -E header=y -E separator=% -e wlan.sa -e ip.src -e wlan.da -e ip.dst > ...
0
votes
1answer
243 views

Copy all files to one folder using CMD

I want to collect all images and movies in one folder. I try to type in Windows XP CMD: set nowy="c:\nowy" mkdir %nowy% for /R %f in (*.mpg *.swf *.jpg) DO (copy "%f" %nowy%) but it seems that if ...
0
votes
1answer
94 views

Windows - how to copy searched/found files to another location?

I would like to write a batch file to search for files with a particular pattern in sub-directories and copy them to a particular directory. It seems easy in Linux but how can I do that in Windows?
0
votes
1answer
296 views

Windows Batch Script to calculate Filesize 'Chart'

I am seeking to understand that "average" file size for a folder on my computer. I have calculated the true average of files (total size / no. of files), however I would, ultimately, love to group ...
0
votes
1answer
924 views

Copy Mac Address into Clipboard help in Windows 7

Given the batch script below. How would I be able to give me a MAC address with no dashes and add a "D" in front of it? So when I go and paste, it has a MAC address that starts with a D and there ...
0
votes
1answer
610 views

OCR batch processing images

I have about 3000 small images of text which I want to process into a comma separated list. Is there any free program that would be capable of this?
0
votes
1answer
779 views

Batch converting video from avc1 to xvid

I need a way to batch convert 720p video files from avc1 to xvid in Ubuntu 10.04. I'm not terribly concerned about file size, but I do wish to retain the picture quality as much as possible. I believe ...
0
votes
1answer
406 views

How to write a batch file to delete subfolders less then 10MB?

I have a folder, "myFolder". In "myFolder", I have many subfolders. I know that if the subfolder is less than 10MB, it can be deleted. Instead of checking the folder step by step, how can I write a ...
0
votes
1answer
1k views

Batch script: grant folder full control to users group

It should be done from command line (batch/cmd script, not PowerShell) as part of post-install like event I tried cd C:\ProgramFiles\AppDir\Settings CACLS /T /G BUILTIN\Users:F But it didn't ...
0
votes
1answer
2k views

Batch Conversion of PaperPort MAX Files

I've got a library of MAX files from an old Visioneer Scanner that used ScanSoft PaperPort. I don't have the PC that I used to scan them anymore, and I don't have the CD for PaperPort. Does anyone ...
-1
votes
1answer
47 views

Folder full of .jpg files. Batch convert each to a video with duration of X seconds

I am looking for a way to mass convert a folder of image files to a video (one per image), where each of the images is taken and placed on the video for the full duration of the video, e.g. 30 ...
-1
votes
1answer
104 views

How to add a program in safe mode start up registry using batch script?

We have a custom student computer activity monitoring software. I need a batch script to add this program in start up registry so no one can avoid by using safe mode. I want edit this registry ...
-1
votes
1answer
54 views

Wrong environment Settings invoked in Commands

Getting wrong and extra pathnames in error messages using "For /D", "dir" and "if exist" commands when running the non-Powershell batch code to elevate UAC privileges code here. This has been noted at ...
-1
votes
1answer
265 views

I want execute in bacth via commandline REG IMPORT

When I try to execute this command: REG IMPORT myreg.reg I get access denied message, because I'm not administrator. However I don't want to open command line using run as administrator in visual ...
-1
votes
1answer
28 views

when executing batch file cmd only outputs so much

I write simple batch files to automate simple processes along the lines of this for /r %%n in (*.wav) do del "%%n" PAUSE when i execute this command the cmd quickly scrolls through all the files ...
-1
votes
1answer
343 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: ...
-1
votes
1answer
189 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 ...
-1
votes
1answer
330 views

Batch Launcher With Variables

This batch launcher was created so that batch files won't launch a command prompt window... Now that i'm adding more variables to it, it's not working... I'm launching the VBScript like so; wscript ...
-1
votes
1answer
44 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
451 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
601 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
523 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 ...
-1
votes
1answer
757 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
44 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
486 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
544 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
81 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
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
340 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] , ...