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. Please use the tag [batch-file] for that.

learn more… | top users | synonyms

0
votes
1answer
14 views

Open a file saved on a team place with batch

I would like to open a excel file saved on an intranet teamplace using a batch file. The problem that i found is that the link for the file ...
1
vote
1answer
470 views

Mapped drive is not accessible, to copy files, using Task Scheduler

On my Windows Server 2008 R2 machine, a batch file is scheduled to run using Task Scheduler. For some reason, only a portion of the commands in the batch file are executed; Some MS DOS commands are ...
1
vote
0answers
25 views

Command for switching desktops in Windows 10 [duplicate]

Is there a command to switch to a specific desktop in Windows 10 (or alternatively open an application on a specific desktop which achieves kind of the same effect since windows will automatically ...
0
votes
2answers
87 views

Windows add empty line to start of txt batch

I would like to add an empty line to the beginning of multiple text files. To append this to the end would work probably work just the following in Windows cmd. echo. >> *.txt How do I add ...
0
votes
2answers
2k views

Robocopy: Log names of skipped/Failed files

I am using the following batch file to run my robocopy command: @ECHO OFF for /f %%a in ('wmic os get LocalDateTime ^| findstr ^[0-9]') do (set ts=%%a) robocopy [source] [target] ...
0
votes
1answer
33 views

How do I batch delete a specific subfolder from multiple folders?

Here's the "not-working" version of what I'm trying to do: rd d:\Video\*\Sample /s /q I've got a bunch of subfolders with different names within my "Video" folder, and some of them have a ...
1
vote
1answer
91 views

Automatically find installation directory of application and run batch command inside folder

Basically, assume I have program called ABCD installed. I want to automatically find out where exactly (which folder) it is installed (sometimes not installed in C drive, that's why), and run a batch ...
1
vote
1answer
115 views

How to send a SIP message with a batch program

I must be missing something. I can't seem to find how to send an instant message via SIP using a simple batch program to which I can pipe the content of the message. I know how to do it ...
1
vote
1answer
29 views

Create a list of the files on a hard drive and name the list using the volume name

So, I know this creates a list of the files in the drive: SET /P drive=Enter drive letter: tree %drive%: /a > "C:\Drivelists\%listname%.txt" but I don't know how to get the drive's name ...
1
vote
2answers
64 views

Running a .bat file uploading image files, want to know what files are new?

I've got a .bat file that I created, which uploads new files to my company's server.  It works great, but after it runs, I have no idea what files are new vs same.  When the batch file runs, I can see ...
1
vote
1answer
473 views

How to change a process name in the task manager via batch

How can I start a program via batch and change it´s name in the Task Manger. For example, start "program" /HIGH "%~dp0\program.bin" In the Task Manager it shows program.bin, but can I change it to ...
1
vote
1answer
64 views

Batch substitute for wifi on/off toggle win 8.1pro - automate hosted network

I'm using netsh to enable an hostednetwork AP and it works fine, but i wanted to make a step forward and try to query and enable the wifi adapter. Then the problem - if wifi toggle is switched off it ...
5
votes
1answer
109 views

Writing to file with 'find' command in a batch script

I need a batch script for windows that does the following: dumps all the filenames from a directory to a .txt file (usually several hundred up to 50ish thousands of files) searches the output ...
1
vote
1answer
287 views

Batch file to delete files by age [duplicate]

I have a directory that is set up as \server\\year\month\day\x, .../y and .../z. I need a batch file that will delete videos located in the x folder in each user's directory for each month day and ...
0
votes
1answer
73 views

Batch file to copy new files from source to destination

I need a batch file that will copy text files that are generated daily and dropped into the E:\BAP Reports\Director Reports folder to our P:. Since nothing ever gets deleted from the Director Reports ...
0
votes
0answers
26 views

How to Change word in file using Batch file

I try unsuccessfully to change word in text file(D:\comp.txt) using Batch File path: D:\comp.txt Old word: server12 My new word: server777 Can someone can help me with the script syntax ?? I ...
0
votes
1answer
61 views

How would I diff two mbox files in an intelligent way?

I have two mbox files containing about 6k emails each. They should be more or less identical, though #1 contains about 100 emails which #2 does not contain. I would love to generate a third mbox file ...
0
votes
3answers
154 views

Robocopy: How to copy assets from multiple locations to a single location and maintain a log

I have multiple folders containing assets (each folder has subfolders containing these assets .mp3, .txt, .png, etc). I want to copy all this assets along with the subfolder to a single ...
0
votes
2answers
26 views

Pinning Shortcuts to the Taskbar by Batch

I'm trying to pin shortcuts to the taskbar with batch. The method I am using is taking a pre-made shortcut from a Setup program, and copying it to %APPDATA%\Microsoft\Internet Explorer\Quick ...
1
vote
1answer
33 views

Batch extract images from *.mts every 30 seconds?

Forgive me as I am just getting started with ffmpeg. I have a folder of *.mts videos (titles are sort of wonky, lots of spaces and characters and numbers---not sure if this is affecting it) and I need ...
2
votes
3answers
183 views

Running .bat over network

I have a .bat file on my server pc which contains various file paths etc which are on that server pc. I have vpn set up so that I can access this pc from my main pc but when I launch the .bat it looks ...
0
votes
1answer
64 views

How to batch convert to mp4 with arista-transcoder?

I dont understand how to list valid preset names and select the Computer - H.264 preset available in the arista-gtk listing. When I batch convert like arista-transcode -p "Computer - H.264" *.wmv the ...
0
votes
0answers
32 views

How to make a logon script window pause or close conditionally with Kixtart [answer] [duplicate]

Windows Server 2008 R2 or Windows 7 I have a batch file that launches a Kixtart script. In CMD or Kixtart, one way or another, I'd like my script to pause for 15 seconds at the end and display a ...
2
votes
1answer
55 views

Run vim command from the command line

I need to do the following in several files: dt{%lx:wq, i.e., delete to the first { find the matching } delete the next character save and exit how do I do this from the command line without ...
0
votes
2answers
131 views

How to use nircmd.exe and set filename %~nF in batch for loop

I'm trying to write a batch file that iterates through each filename, takes part of the strings, and sets the created and modified dates. Mind you, dirpath is a placeholder for actual path. @echo off ...
0
votes
0answers
59 views

net use - disable failure message

I'm writing a script to map a drive for some users, and I'm handling errors and whatnot in the script so it's understandable and not throwing the standard command line errors. The only one I can't get ...
0
votes
0answers
158 views

Can't execute net use from batch file - network path was not found

I have a batch file that includes these lines: set /p _usern=Username: net use g: \\servername\d$ /user:%usern% If I run these commands directly from a command prompt window, the path is found and ...
0
votes
0answers
162 views

batch file modified and created date [duplicate]

I am using BulkFileChanger, but I want to put it to better use. My current OS is Windows 7. I'm a novice when it comes to batch scripting and could use some help. I have a directory of files with a ...
0
votes
0answers
254 views

Windows 10 batch file dns

I have two batch-files, one to change my DNS to Unblock-US, and one to reset it to DHCP. These worked perfectly in Windows 7 and 8/8.1, but after upgrading to Windows 10 i can no longer reset it to ...
1
vote
1answer
50 views

Batch file: environment variable “if” string test

In a batch file, I'm calling another batch file to set a number of date environment variables. The data variables set properly and I can call them. However, in this instance, I need to compare two ...
0
votes
0answers
27 views

TYPE command windows batch file [closed]

I have 10 files like below: file1.txt (file content = "i contain text for file1") file2.txt (file content = "i contain text for file2") file3.txt (file content = "i contain text for file3") and ...
1
vote
3answers
551 views

Windows batch file with TYPE command

I have 10 files like below: file1.txt (file content = "i contain text for file1") file2.txt (file content = "i contain text for file2") file3.txt (file content = "i contain text for file3") and so ...
0
votes
1answer
63 views

Windows: how to call batch file with low priority with Ctrl+C support?

I know that I can run a batch file with a low priority using command: cmd /c start /B /BELOWNORMAL mvn.bat clean install && exit... The problem is when I press Ctrl+C it does not stop the ...
0
votes
1answer
1k views

Windows task scheduler not triggering a task on Windows 10

I have a task that is supposed to run a script I made, every 10 minutes, but it just doesn't seem to trigger it. In the task scheduler it says that next run time is in 10 minutes, but when the time ...
0
votes
0answers
253 views

How to run executable on a network drive in compatibility mode from command line

I have an application (written in Powerbulder 9) that calls an executable on a network drive through the command line. Many people use this application with the same executable on the network drive. ...
0
votes
1answer
43 views

Preserve existing tags in Anki CSV import/batch-add tags

I have downloaded the complete 2012 HSK vocabulary from here, where it is available as an excel file. I have then converted it to .CSV and changed it to this form: 爱;HSK:1 … 做主;HSK:6 The first ...
0
votes
0answers
25 views

Fireworks batch process multiple operations and exports

Full disclosure: I have also posted a similar question on Stack Overflow, but that assumes the best fix for this is to edit the batch process script. I have a sneaking suspicion I am failing to ...
1
vote
3answers
80 views

Moving files/folders to new structure

I'd like to be able to move Folders (and any subfolders and files) from one location to another; however, I only want one specific sub folder moved from each folder in the starting location. Here's ...
2
votes
1answer
352 views

Find and replace hyperlinks in a PDF

I want to automate the process of finding and replacing hrefs (not the anchor text) in 100's of PDF files in a Windows 8.1 OS. I am happy to convert file formats so long as they can be re-compiled ...
1
vote
1answer
89 views

Create a batch file to execute tasklist and append its output to log.txt

I'm trying to create a batch file to execute tasklist every 3 minutes and log it into log.txt. I'm very new to batch files and would like to know where I've gone wrong in my batch file. @echo off ...
0
votes
1answer
46 views

Batch. Mass renaming files in the folder and all sub-folders

I try to rename all files in folder and sub-folders by removing the "-min" part from each filename with help of batch-scripting under win7 @ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION CD ...
1
vote
1answer
61 views

Copy filenames from one folder to another [closed]

I have 2 folders with a lot of files. First folder has image files with filenames: 0_01_23_982__0_01_26_692.jpeg 0_01_26_985__0_01_29_987.jpeg 0_02_15_992__0_02_19_995.jpeg etc. Second folder ...
0
votes
1answer
135 views

Start a batch shell within a bash shell with autocomplete with windows

I am using bash inside Cygwin and I want to start a new batch shell within the current shell. So I use cmd to enter into a new batch shell: myuser@machine / $ cmd Microsoft Windows [Version ...
2
votes
1answer
39 views

CMD batch escaping enviroment variable in params

I have to write a batch file with a enviroment variable a param: c:\myapp.exe -f "%APP_HOME%\file.conf" I need to pass exactly the string "%APP_HOME% as param and not its value. How can I do? In ...
0
votes
0answers
24 views

How can I close all active applications(except things like start bar)?

I am trying to make a small batch script that shall close all applications I have open, but not close the ones that need to be open(for example, to not shutdown the start menu, and also I do not want ...
0
votes
0answers
20 views

How to display which files are getting modified using windows batch

I have a windows batch program which monitors a directory and records timestamps whenever a file inside gets modified. I now want to know which file is being modified. In other words I want to know ...
1
vote
1answer
280 views

Batch merge sets of video files?

I have 158 folders, each containing 5-15 video files that are each a few minutes long. I would like to merge all of the videos into one video per folder, and delete the rest. The folders are named as ...
0
votes
1answer
70 views

Call batch file which calls another batch file using the second ones directory as working directory

Assuming I have a batch file (start.bat) in C:\ with this lines : start cmd /k call dir1\dir2\1.bat start cmd /k call dir3\dir4\2.bat start cmd /k call dir5\dir6\3.bat Inside 1,2,3.batch I have ...
0
votes
0answers
36 views

adding 2 audio files to mp4 in separate streams

I have 3 files I want to combine into an MP4: video1.m2v audio1.ac3 audio1-02.ac3 The following works great if I only want 1 audio stream: for /r %%a in ("*.m2v") do ( ffmpeg.exe -i ...
2
votes
2answers
137 views

Fractions in Batch

Why does the following code return 0? @echo off set a=100 set /a a=%a%*(50/%a%) echo %a% pause I assume it's because batch at some point evaluates (50/100) as 0.5 and rounds it down to zero ...