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

0
votes
0answers
9 views

Batch Issue - Creating folders and Moving Documents

I’m trying to create a batch script in Windows 7 that will look at the first 6 numbers of 100s of pdf, create a folder based on the 6 unique numbers and move the pdfs into their respected folders. ...
0
votes
1answer
5 views

Batch file XCOPY cannot find existing directory

I'm writing a small batch file to copy my C# project to another drive. I'm using XCOPY to copy an entire folder (We have some XP machines still, so robocopy isn't an option). However, when I run the ...
7
votes
5answers
25k views

How to copy a list of file names to text file?

How can I copy the names of files in a directory to a text file or to a clipboard?
8
votes
2answers
448 views

How to test thousands of MP3 files whether they're playable?

I just managed to recover lots of mp3 from a bad HDD. Is there a way to test all these files if they are playable? I don't want to hit next a few thousand times.
20
votes
7answers
87k views

Running bat file at startup as administrator in Windows 7

I'm currently running a startup script in form of a bat file successfully in Windows 7 (I've inserted a new registry key entry with the bat file path as value in ...
6
votes
1answer
35 views

How can I disable all internet connections while my screensaver is running?

I was wondering if it's possible to disconnect my desktop PC from the internet entirely when starting a screensaver? I would also like to reconnect to the previously selected network (I'm using a ...
0
votes
3answers
2k views

run a windows bat file on startup

I have a server access where I want to run some bat files in startup that can run automatically for any user. The problem is Other users are unable to run this file and it is required to be run as ...
1
vote
0answers
12 views

Applications and .bat script get locked in Windows 7 for some minutes

I am playing around with Windows batch scripts and simple C++ applications on a Windows7 64Bit PC. The problem I am facing is that I cannot modify neither the batchfile nor the mingw-exe for minutes ...
2
votes
2answers
1k views

Why do .bat scripts get locked after execution in Windows 7?

Ever since I moved to Windows 7, whenever I am am developing a .bat script I have exactly one chance to get it right. As soon as I execute the script, it becomes locked by an unknown process even if ...
0
votes
1answer
32 views

Batch script to take the output of a command and create a variable out of it?

For example, I want to search for a file where /r C:\ "myfile.txt" and then make the output of that command which would be the file path to "myfile.txt" a variable I choose, So then the path to ...
0
votes
1answer
13 views

batch: wmic difficulty in FOR loop

I'm trying to learn to write batch files so I can be more useful at work, but I'm having some difficulty with wmic inside a for loop. (even if there is a better way to do this with PowerShell or ...
0
votes
1answer
44 views

Using a .bat file to pull a string from a text file within a zip folder

So, please bear with me. This is only the second batch file I've ever written and my first post anywhere on StackExchange. I'm writing a batch file that tells a remote server to run HP Array ...
0
votes
0answers
13 views

batch file-change date back, run program, stop program, change to actual date

please for special purpose I need for one program to run it on system date 06.04.2014 what is batch file to automate it, that is change system date back, run program (i want work in it maximum 15 ...
2
votes
0answers
25 views

Batch file to boot to desktop on Windows 8?

I wanted to put a batch file that runs explorer.exe on a scheduled task so it would run every time I log on and boot me right to the desktop. I know there's 3rd party programs that do this and so does ...
2
votes
1answer
12k views

Batch File - Delete Shortcut From ALLUSERS Desktop

In Vista/7, if I try to delete a shortcut using the following command -: del "%allusersprofile%\Desktop\MyShortcut.lnk" ...Windows sees this folder as empty and doesn't delete the file. The ...
0
votes
0answers
5 views

Can't run program in Sandbox without having certain files

So basically the project is to run many instances of a program that needs to check that a dongle is connected at start up. I got this part of the problem down as I am going to use a multi-boxing ...
-1
votes
0answers
17 views

Search “modified” word from a text file and rewrite whole text file by 1 if found else by 0 [on hold]

text file contains this lines sgfsgsgsrgsgs/adfa/45/fds dvadffdf modified text 1/17/2013 5:44 PM Total listed files: 1
0
votes
1answer
29 views

Why did running this script as administrator cause it to create a 1GB folder?

A batch script designed to copy another batch script to users' Documents folders in Windows had the undesired effect of creating a ~1GB folder in one user's Documents folder when he ran it with ...
1
vote
0answers
130 views

Running Batch file from servers network share - using servers local user account

I am trying to create a script that could be run from servers network share and promt me to type servers local username and password as credentials. So, .bat file is located at ...
0
votes
0answers
12 views

How to hide cmd window of a Calibre Content Server batch script?

So I manage to be able to share more than one Server Content at the same time with the same PC. If someone want to know how can I do this, is easy. Make a batch script and put this: @echo off ...
1
vote
2answers
56 views

Batch command for Searching & Replacing Text in a Text containing non-TXT file

I am working with iMacro JavaScript .js files which are simple unencrypted lines of code-like text. The file contains the following code: var i; for (i = 1; i <= 10; i++) { iimSet("loop", i); ...
0
votes
1answer
115 views

Batch - call another batch and have it excuted

Working on getting some batch files working. The first one I have (which works) takes a .rar from one drive to another and give the dir same name as the files put to rar and then copy a rename.bat ...
-8
votes
0answers
40 views

Write a Batch Script [closed]

Write a batch script to count the no. of columns in csv file, where each column is separated be a comma. I am new to batch scripts. Could anybody please help me in writing batch scripts for the ...
-1
votes
1answer
20 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 ...
0
votes
2answers
33 views

Windows DOS Command for Finding folder name with specific characters & select it

Trying to write batch file code for copying contents of a folder with path "C:\ABC" to another folder whose exact name is unknown ( its a Profile data folder of firefox) Profiles of Firefox are ...
0
votes
0answers
19 views

enviroment variable %PROGRAMFILES% with 2 executions

I want to install a program with a batch-file to the Program Files folder. Afterwards I want to copy a folder to the same folder. Here is an example: SET SCRIPT_LOCATION=%~dp0 SET ...
0
votes
2answers
21 views

Not process a variable in a string immediately in batch script

I'd like to know if it's possible to process a variable containing a variable not immediately but only when asked. For example this batch: @echo off setlocal EnableDelayedExpansion set VA=Two set ...
-2
votes
1answer
102 views

Batch file to copy a file at random to another folder

I need a batch file: Given folder A containing .txt files; e.g., C:\A\a.txt C:\A\b.txt C:\A\c.txt C:\A\d.txt and folder B (which is empty), I need the batch script to copy one randomly chosen file ...
0
votes
0answers
43 views

How to Move multiple sub-folders through out a tree structure with the same name to one folder [on hold]

I'm looking for a batch file to move multiple sub-folders that have the same name throughout a tree structure to a new folder that will contain a single folder with all the files. i.e. Folder 1 - ...
1
vote
1answer
29 views

Batch convert txt file encoding

I have about 700 files that were the results of a closed caption software process. I can open the files on my PC or Mac in a GUI, but when I open it on the server with nano, I get this: ...
1
vote
3answers
43 views

Processing files with names that contain a “^” (Carat), inWindows

I'm having trouble processing files with names that contain a "^" (Carat). What I'm noticing is that if I use double quotes when evaluating the filenames, the "Carat's" are doubled. If I don't use ...
0
votes
0answers
30 views

Windows batch script: Manual power up vs Wake on Lan (WOL)

OK, I have a (win 7) desktop computer with WOL set up so I can turn it on remotely, it works fine. Next thing, on this computer I have a batch script, which runs at startup and starts various apps, ...
1
vote
2answers
3k 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 ...
0
votes
0answers
17 views

batch files compare before and after before deleting

I use two commands in this batch file for /r %%n in (*.wav) do xma2encode "%%n" for /r %%n in (*.wav) do del "%%n" Sometimes xma2encode doesn't create the .xma file like it is supposed to. If it ...
-1
votes
0answers
11 views

batch conversion from one format to another using external command line program [closed]

I am trying to convert several audio files from one format to another proprietary format. The tool I use to do the conversion doesn't allow multiple files to be converted at once through the program. ...
1
vote
1answer
26 views

Should a scheduled task remain in the “Running” state?

I'm new to using the task scheduler and I'm using it to run a batch file provided online when the computer boots. I r-clicked it and told it to run. It did and all is fine, but the Status of the task ...
21
votes
10answers
18k views

Renaming many files in Mac OS X, batch processing

I used to rename file in Linux via a rename command: rename 's/old_pattern/new_pattern/g' *glob Is there something similar in Mac OS X (Snow Leopard)?
2
votes
3answers
59 views

In windows, is there a way to count the amount of times a string appears in a file

I am currently trying to write a batch script and at this point, I need to find a string, "null", and determine how many times it is shown in the file. I'm downloading an API from a website ...
0
votes
1answer
552 views

How to run a batch file to backup to VPN drive?

I have a VPN into a client and I want schedule a batch file that will do some file copying to backup some data. Problem is how do I automate to connect to the VPN if not connected and also unless I ...
4
votes
3answers
2k views

How to quickly save what is currently shown in cmd.exe to a file

I am asking if there is a quick way/command to save the current standard output from cmd.exe or powershell to a file. For example, I have run a bunch of commands in cmd.exe which generating like ...
1
vote
1answer
48 views

Need help to replace one tag with another

Anyone can help me on EmEditor Macro? id="131" restype="x-p" phase-name="pretrans"><source>Good morning</source><seg-source><mrk mtype="seg" ...
1
vote
4answers
3k views

Why does the command forfiles list files that are not a day old despite the command being otherwise?

The command I am executing is forfiles -p"C:\testdata" -m*.* -d-1 -c"cmd /c echo @PATH\@FILE" I have specified that I wish to only list files that are a day old however when I execute the statement, ...
1
vote
4answers
5k views

How can I prevent to run same batch file twice to allow only one instance?

I need to detect if a batch file is already running or not. In the batch I simply loop and repeatedly do some tasks. Sometimes the loop cannot complete. I run the batch file at a scheduled time. When ...
0
votes
0answers
33 views

Batch file - List Files by extension

I am looking to get a total number of files by extension in a folder that contains many subfolders. Example Output: .doc: 6 files .xls: 10 files etc I want to either output the results into a ...
0
votes
2answers
21 views

Can wget decode uri file names when downloading in batch?

Normally when downloading files using wget, the filenames are encoded. In example: wget -c --content-disposition "https://class.coursera.org/ml-005/lecture/download.mp4?lecture_id=1" and the saved ...
0
votes
1answer
35 views

Deleting files older than X days from different directories using forfiles

I would like to create a batch file that deletes files (only files, not folders neither subfolders) from different directories (100+ different directories) older than 1 day and have this batch run ...
-2
votes
1answer
4k views

Delete files older than 7 days in folder and its subfolder [duplicate]

I need to have a windows batch file which deletes all files which are older than 7 days in a folder and its sub folders without deleting any folders.
2
votes
1answer
79 views

Detect batch output presence

I've got a daily scheduled .bat batch script that runs Fossil, and automatically commits that day's changes to my projects' source tree. Now I've set it to run every day, including the weekends, ...
0
votes
1answer
2k 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 ...
1
vote
1answer
4k 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 ...