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

4
votes
2answers
504 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 ...
3
votes
2answers
190 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
290 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
510 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
506 views

Batch rename files that do not match pattern

I do not have programming experience and mostly use one-liner or sometimes more to get the job done. I am having problem to batch rename the files that do not match a particular pattern. Sample ...
2
votes
2answers
715 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
129 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
1k views

How to optionally copy and rename a file in Windows?

Basically, in an automated batch file, I want to copy and rename a file if the destination file is missing or older. There are several variants, which do not quite work: copy /Y c:\source\a.file ...
1
vote
2answers
2k views

How to create a desktop shortcut from a batch file

I know there are many posts on this issue but there is a minor twist to what I need to do. I can figure out how to create a shortcut with an argument like this: "C:\Program Files\My App\App.exe" /s ...
1
vote
2answers
115 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
1k views

How to set to a variable, the result of a expression

I need to extract the date of a file, for then use this string as part of the name of a new file. I trying to solve this using the next commands: First I get the details of the file and redirect the ...
1
vote
2answers
2k views

VBScript Capture StdOut from ShellExecute

I am trying to run the following code snippet as part of a tool to gather and log some pertinent system diagnostics. The purpose of this snippet is to gather the result of running the command: ...
1
vote
2answers
511 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
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
839 views

Batch transfer file every x minutes

I have a simple question, but I don't remember the batch syntax very well. If I want to create a batch file that transfers all the files in Folder A to Folder B every 20 minutes, what does the batch ...
1
vote
2answers
1k 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
1k 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
164 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
202 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
33 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
53 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
109 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
145 views

Looking to create a batch file capable of editing a line (or word) in a text file

I have a text file (...\config.txt) containing 2 lines which looks like: Preamp: -4 dB Include: surround.txt I need to change "surround" to "headphones" in that config file. I really need to make 2 ...
0
votes
2answers
74 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
222 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
53 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. . . . . . . . . . . : =% | ...
0
votes
2answers
210 views

How to batch insert same clip scene at the beginning of multiple videos?

Well, it has been a few days researching on a suitable auto or semi-automatic way of mass merging files this way. Basically, what I want to achieve is inserting the same clip, before a bunch of other ...
0
votes
2answers
514 views

Windows 7 - Shortcut - Target Attributes too long

I need to launch a shortcut to a program (vlc.exe) and have it launch with certain attributes (it's quite a long string) and the target box will not accept enough characters. I need help finding ...
0
votes
2answers
456 views

File upload batch

I am trying to write a batch file that will Upload and update a specific set of file on my desktop to an FTP account, so I wrote this batch: @ftp -i -s:"%~f0"&GOTO:EOF open DomainName.com ...
0
votes
2answers
486 views

How do I batch decompress so that each file unzips to separate folder?

Does anyone know how to unzip a highlighted list, so they unzip to folders of file name (under Windows)?
0
votes
2answers
663 views

copy works where xcopy and robocopy does not work

Network admin allowed me to read-access only 1 file from a subfolder of a shared folder on a server and I don't have permissions to even view upper level folders, but when I open that folder I can see ...
0
votes
2answers
1k views

Cut a part from a filename (windows batch)

I got files named like this: cam1(word1 word2 wordN) (24-04-2012 00-11-13).mpg cam2(word1 word2 wordN) (24-04-2012 00-11-13).mpg cam3(word1 word2 wordN) (24-04-2012 00-11-13).mpg Need to cut (word1 ...
0
votes
2answers
798 views

Batch convert AppleWorks files into PDF within originating folder, delete original file?

Probably AppleScript is the way to go with this - I have found scripts online that do this, but snag on oversize printable area and put files in the same folder - I need files to stay in the folder ...
0
votes
2answers
79 views

Batch detect text in images

Is there a tool that can batch detect text/watermarks in images and the move them to a separte folder or alert the user in some way?
0
votes
2answers
412 views

How can my monitor be awoken after Windows 7 resumes?

I have a script that makes the computer sleep at 8pm and wake/resume at 8am. The scripts run perfectly fine, but when it wakes at 8am, the monitor doesn't turn on until the mouse is moved. How can I ...
-1
votes
2answers
498 views

Writing a batch script which can start up applications

I was just wondering how to write a Windows 7 batch script which can start up a list of applications. Should look something like this I guess, structurally: Run C://program/software/software1 Run ...
-1
votes
2answers
1k views

Copying a set of local files to FTP server

I want to copy a set of local files to ftp://124.30.124.230 (it will ask username and password). I want to do this work in 400 systems. I have planned to do this work by creating a batch file and ...
0
votes
1answer
685 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
742 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
1k 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
62 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
241 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
104 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
222 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
331 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 ...
-2
votes
1answer
29 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: ...
-2
votes
1answer
40 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
251 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
521 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
178 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?