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
68 views

xcopy works, but doesn't

Really odd behavoir on xcopy. I have a batch file as follows "<=create a backup of a service - works fine, backup files created correctly=>" For /f "tokens=1-4 delims=/ " %%a in ('date /t') do (...
0
votes
1answer
157 views

Wildcard in rename and robocopy command into batch file

What I am attempting to do is automate some work I do daily. What I would like to happen is a prompt saying What is your name? Then use that answer as a variable to be used in different commands like ...
0
votes
1answer
173 views

Gradle in Batch file prevents cmd.exe from exiting

I have a batch script that does something like this: call gradle clean shadowJar exit The exit command doesn't seem to work, however. The command prompt window will stay alive even after the gradle ...
0
votes
1answer
65 views

How can I find all folders with a specific name and delete all contents except for two files with a batch script?

To clean up a project I need to find all (sub)folders named palette-library starting from the current location of a batch script file and then delete all its contents except for a folder called ...
0
votes
1answer
447 views

How can I over-ride Windows10 default DNS Servers to use OpenVPN assigned DNS servers

A problem has arisen with Windows 10 in that it always uses it's local DNS servers (as well as VPN assigned DNS servers) for DNS resolving, which in turn leads to a DNS leakage scenario. Details ...
0
votes
1answer
145 views

Batch file to delete shortcuts from desktops

I have a lab with 30 Windows 7 computers. I would like run a batch file that sends a command to each of these computers that would delete a specified shortcut from the Public\Desktop. This is what I ...
0
votes
1answer
37 views

Automate set up and driver installs on Windows 7

I have to set up a large amount of PCs all with a fresh install of Windows 7 or XP, all with the same settings using the options in the control panel, and all with similar hardware drivers. The only ...
0
votes
1answer
20 views

FOR /F not retrieving all parameters

@echo off setlocal enableextensions setlocal enabledelayedexpansion set frase=Nome da impressora EPSON L110 Series REM A linha abaixo ao inves de resultar em "EPSON L110 Series" REM retorna apenas "...
0
votes
1answer
644 views

Reset Batch File Open Command for Windows 10

Awhile ago I attempted to change the default editor program for batch files to Notepad++ but instead set the default way to open it. I've attempted: https://social.technet.microsoft.com/Forums/office/...
0
votes
1answer
39 views

Using a dos batch file, I want to save each Record Name and A (Host) Record from ipconfig /displaydns to a text file

Using a dos batch file, in windows XP, I want to save each Record Name and A (Host) Record from ipconfig /displaydns to a text file. Instead of www.netword.com -------------------------------------...
0
votes
1answer
1k views

how to completely disable pagefile use wmic

Hi I am trying to create a batch file to disable the page file on windows 7, is there any wmic command will do this? I know I should be able to use "wmic pagefileset delete" however this always ...
0
votes
1answer
770 views

Windows 7 Batch file to turn off firewall and restart computer

I'm trying to create a batch file to do as the title states. Currently, I have: netsh advfirewall set allprofiles state off sleep 30 C:\windows\system32\shutdown -r -t 00 This batch file restarts ...
0
votes
1answer
267 views

Batch to reassign drive letter based on volume name

I have a "WINPE" volume and I am trying to get a batch script that will assign it drive letter "Z:" Someone gave me the script below but it does not work for /f %%D in ('wmic volume get ...
0
votes
1answer
353 views

How to set a folder name into a variable to use it in the same Batch file?

i want to make a batch file, This Batch file must look out, into a folder with the name "Draft" and for every sub-folder will be make a search for a .txt file "list.txt" and when finds this .txt file, ...
0
votes
1answer
359 views

Batch converting files using ffmpeg

Can anyone tell me where I'm going wrong doing this. The idea is to find and convert all files in a directory to m4v's. Regardless of the extension. Then once it has been converted, to generate a ...
0
votes
1answer
23 views

Extracting Lines below Specified Words in batch script and change the format

I have a "test.txt" file in the format of: xdfdfdf ydffddf zddfdfd blah ... WordA 12 23 45 ... 32 12 65 xdfdfdf ydffddf zddfdfd blah ... WordA 54 76 67 ... 68 31 85 xdfdfdf ydffddf zddfdfd blah ... ...
0
votes
1answer
159 views

Script to enable autologon for users on a domain won't work unless I run it twice

So I'm having an issue with a script that enables autologon domain users. For some reason I have to run it twice for the option to be enabled on the computer. The Script: @echo off REM Set variables ...
0
votes
1answer
75 views

How to find out if it's the first boot on the current day

I have a batch file in my auto start which should behave a bit different on the first boot. How can I find out if it's the first boot on the current day via Windows cmd? May be there's some way ...
0
votes
1answer
39 views

Need to move lots of consistently named files to certain folders (Windows 7)

I need to populate a bunch of folders with files of various types. The destination folder structure is as follows YEAR > COMMITTEE_NAME YEAR > YEAR MONTH COMMITTEE_NAME EX: 2015 > ADP 2015 > 2015 ...
0
votes
1answer
56 views

How to do this in all subdirectories in parent folder using batch script?

i am total noob for scripting so i need small help with this batch script... Here is script : @ECHO OFF SetLocal EnableDelayedExpansion SET par2_path="C:\PAR2\phpar2.exe" SET par2_redundancy=10 :...
0
votes
1answer
215 views

batch file opens new command prompt - how to redirect new command prompt to a file?

tia, but I'm wondering if there's a way to redirect a tomcat startup.bat call into a text file. Here's my situation: I open cmd, navigate to the needed directory, and call 'startup.bat' This opens up ...
0
votes
1answer
132 views

Batch rename folders with illegal characters * and :

I want to move thousands of folders and files from an old to a new storage system with Windows 2008 R2. Obviously a user with MAC OS has named hundreds of folders with characters - * and : - that ...
0
votes
1answer
107 views

Windows batch file “was unexpected this time”.

@echo off pause set /a x=1 set /a n=0 set /p x_end=x (End)= :loop cls set /a n=n+1 set /a x=x+n+1 set /a students=n+2 echo x=%x%, n=%n%, x (End)=%x_end% if (%x%=%x_end% goto end) goto loop :end echo ...
0
votes
1answer
94 views

Need command to edit a service's log on to Local System Account

When you right click a service in services.msc and go to properties and Log On, it lets you change it to Local System account, how can I switch to that setting with a batch command, I want to switch ...
0
votes
1answer
103 views

set telnet to use NTLM with command

To set telnet to use NTLM authentication you type in telnet and press enter then type set NTLM How can I make it do this with a command. using telnet set ntlm for example does not work.
0
votes
1answer
132 views

NET USE remove if no right

I have a .bat for connecting network drives. I have 11 in total. My script works, but for now even if the user has no rights, that it connect the network drive. I would like if the user does not have ...
0
votes
1answer
262 views

FFMPEG concat intro video to each file in directory (all mp4)

I'm trying to write a concatenation script (for osx) to add an intro.mp4 video to over a hundred other mp4 videos in a directory. The codec will stay the same mp4, the intro filename will stay the ...
0
votes
1answer
1k views

Add Date-Time Stamp To Copied File using Windows Batch

I thought this would be simple but it seems more of a challenge than I thought. I want a file to be copied and pasted with a time stamp appended. I get the time stamp using this code: set hournum=%...
0
votes
1answer
34 views

How to process files with purely numerical extenson [ regex ] Windows

Windows, batch. I want to process files in batch for loop. The problem is:I have no idea what exactly the extension will be. What I do know is that it will be a number. So what I'm trying to create ...
0
votes
1answer
64 views

How to run b2sum-amd64-windows command recursively in a batch file?

BLAKE (hash function): https://blake2.net/ Download: https://blake2.net/b2sum-bin_20130305.zip The current b2sum-amd64-windows command does not include recursive option For example in windows ...
0
votes
1answer
81 views

Xcopy.exe: Hide all errors (window prompt)

I syncronize a folder on the hard drive with my USB device every time I insert it. For this I use a simple batch script that checks if the USB stick is inserted and if it is then do a sync by XCopy. ...
0
votes
1answer
151 views

Rename files using batch file

I have been searching for a way to rename 150 files daily simply by executing 1 command. The current files are in the same folder C:\reports. The file names differ and the only change I have to make ...
0
votes
1answer
196 views

How to use batch file to do X if it's ran on a laptop?

How do I write a batch file to do different things based on whether it is ran on a desktop vs. laptop? E.g. if on desktop, install x. If on laptop, skip x and install y instead. Edit: Windows 7 64-...
0
votes
1answer
178 views

What does the percent sign indicate when used as a directory in batch files?

I have made a few batch files the hard way by CD-ing into the directory by typing all the way from root drive to folder. I have seen a few example codes use percent signs enclosing a few key words and ...
0
votes
1answer
522 views

Batch zipping multiple files into a single archive

I have the following drag-and-drop batch script for creating zip files @echo off if [%1]==[] goto :eof :loop "C:\Program Files\7-Zip\7z.exe" a -tzip "%~1.zip" "%~1" shift if not [%1]==[] goto loop ...
0
votes
1answer
163 views

Windows 7 batch file to delete specified files in a path with spaces

I'm trying to get a batch to work but it seems it can't find the specified file. I'd like the batch to do the following: Kill my IP camera software Wait a few seconds to ensure the software has ...
0
votes
1answer
69 views

Can Windows XP use net send command to send a message to a later version of windows?

The net send command can only be used in Windows XP or earliar versions. But can a Windows XP computer send a message to a later version of windows using the net send command?
0
votes
1answer
214 views

Batch to retrieve TFS version erroring in FOR /F where TFS attempts to PIPE to findstr

I have this partial batch, but it gives me an error (On 64 bit installations) SETLOCAL EnableDelayedExpansion REM Figure out what ProgramFiles Root we run the command SET ProgFiles86Root=%...
0
votes
1answer
2k views

Running batch file on remote machine (VM) using PowerShell

Quick question, have searched for awhile but can't find answer anywhere. Some background: I have a local machine and remote machine (Virtual Machine) that I am connecting through RDP. I have a batch ...
0
votes
1answer
80 views

How to append to the user %PATH% from command line

I found plenty of questions like this one on StackExchange but no one work in my specific case. I would like to easily add literally %FOO% to the user environment variable PATH. I found the ...
0
votes
1answer
381 views

How can I have a custom 7Zip batch script work like the “add to archive…” context menu action of 7Zip?

I am trying to figure out a way to select several files and folders in Windows Explorer and add them to a password protected .zip archive using a batch script, 7zip and a custom context menu item. ...
0
votes
1answer
231 views

How to batch compress sub subfolders?

I'm on Windows Server 2012 R2. I have a directory that looks like this: Folder01 Subfolder 1 File1 File2 File3 Subfolder 2 File1 File2 Subfolder 3 ...
0
votes
1answer
89 views

for loop stops batch script

ok so been playing with this script and for some unknown reason it always crashes out (exits the prompt) when the script reaches the for statement, however if i simply copy and past these commands one ...
0
votes
1answer
172 views

Delete “unidentified” carriage-return char from a text file

I have a text file containing a strange "carriage return" char. If I open the file with Notepad I can't see the new line. If I open the file with Wordpad I can see the new line. I uploaded an ...
0
votes
1answer
598 views

Batch file that sets a variable equal to the drive letter of first removable disk found

I want to write a batch file such that when I run it in cmd, it sets a new variable equal to the drive letter of my usb flash drive (if, of course, it's the only storage device of that type). Assume ,...
0
votes
1answer
40 views

Batch process in photoshop, Merging two images together

this is more of a added question to an original question asked from this link. How do I batch merge 2 images in Photoshop? im trying to accomplish this same feat, but i want to save as jpeg instead ...
0
votes
1answer
218 views

Batch Move using wildcard in filename is getting files that do not match parameters:

I have a number of files with a 3 digit prefix. I'm attempting to move files based on the prefix using a wildcard. I expect that move 100*.sql subdir would only move files with the .sql extension ...
0
votes
1answer
120 views

How can I remove spaces only from specific position using batch script

I have an entry as below in my input file (input.txt) : mcolWarrant||||||||| 0||Forwarded|| mcolWarrant||||||||| 0||Forwarded|| mcolWarrant||||||||| 0||Forwarded|| mcolWarrant|...
0
votes
1answer
376 views

How to batch process overlaying of different images to a directory of images?

Folder1 has some images in png format and Folder2 has same number (& names) of images in png format with a watermark and transparency. I would like to overlay images from folder2 on images of ...
0
votes
1answer
1k views

Xcopy or Robocopy from Network folder to SharePoint(2013)

I am trying to copy files from a network folder to a SharePoint folder. I have read/write permissions to the SP folder and can manually upload documents to it. I was able to get the .bat to work 1 ...