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
0answers
24 views

How to wait for Autodesk installation to be completed when over the network?

The title may not be all that clear, but I'll do my best to explain better here: Our company is using a bundle of Multi-Seat Standalone et Network licences for Autodesk Building Design Suite Premium ...
0
votes
1answer
21 views

How to select xml value using xml starlet

How do I retrieve a value using xmlstarlet? I'm trying to retrieve the Initial value 4.7 from the following xml file: <?xml version="1.0"?> <GCContextualMethod xmlns:xsi="http://www.w3.org/...
0
votes
2answers
62 views

Can I batch move many files in many separate subdirectories/folders to a single main one in windows?

I have a ton of files in locations like this: C:/Users/(Username)/Desktop/(Parent-Collection name)/(filename1)/(filename1).ext .../(filename2)/(filename2).ext .../(filename3)/(filename3).ext I am ...
-1
votes
1answer
32 views

Windows Batch - Service cycling with validation failing in for loop

I'm trying to set up some validation/timers to wait should the service take longer to cycle. If it fails, I will use something else to parse the log file and email me an alert should it fail. For ...
-2
votes
1answer
25 views

how to move files from sub-folder to folder

I've got: C:/PICS/ASF/photos/files (.jpg) C:/PICS/DFS/photos/files (.jpg) C:/PICS/HGD/photos/files (.jpg) C:/PICS/FTG/photos/files (.jpg) .....etc In every "photos" directory is more than one ....
3
votes
1answer
51 views

Notepad++: Create shorcut to Batch file and open file afterwards

I have a batchscript with the following contents: python.exe c:/path/to/my/pythonscript/script.py %1 which I currently use to be able to drag-n-drop a file onto it. script.py then makes a duplicate ...
-1
votes
1answer
53 views

Using wmic to Find if Product Exists

I'm looking to write a batch file that checks to see if a program exists, and if it does exist I'd like to have it uninstalled. This is what I've got so far. @echo off (wmic product get name| ...
0
votes
0answers
12 views

HTK Warning [-2637] how to break batch file

I have batch file for my HTK routine, and problem sometimes occurs in process increasing gauss mix. Professor told me to stop with increasing when this warning occurs. For increasing I am using HHed ...
0
votes
0answers
27 views

Running Matlab with clusrun

I'm pretty much a Microsoft HPC rookie, but here goes: I have a small cluster of 3 computers running Windows Server 2012 R2. I have the Microsoft PC Pack, which includes a clusrun command (https://...
1
vote
3answers
60 views

Batch script (cmd) resulting in DD-MM-YYYY_weekday format

I need to use date /t command and convert the date format to DD-MM-YYYY_weekday with all the "-" and "_" as listed I can't find an answer on my question. Could you please help me?
0
votes
1answer
44 views

How to write to a file over network sharing center

I am a fairly novice batch coder but I know most of the ropes... Except... How do I write to a .txt file on another computer on my Network. As both computers are Windows, they allow for network and ...
0
votes
1answer
39 views

Execute batch file on computerA to open excel file and trigger macro on computerB

So basically, the reason why I need this is because we can't install excel in the server, so we will have to use another server(computerB) to host all our excel files and macro. Current process is ...
2
votes
1answer
94 views

Set focus onto a specific window using VBScript

Is there a way to set the focus onto a specific window using VBScript ? Window name should be settable by something. (Not an additional program such as AutoIT or so) (Windows 7 Pro)
0
votes
1answer
40 views

Batch file not running due to weird symbols at the start of the line

I have a piece of code i am trying to execute in a batch file it works fine when i run in in the command line but when i save it as a .bat file it fails with some weird symbols at the start of the ...
0
votes
1answer
34 views

Turn off pc after tot. daily uptime

I need to turn off my system after it reach a certain amount of daily uptime. I was planning nof writing a batch or a simple program, schedule his boot only for a specific user, that checks the daily ...
0
votes
1answer
53 views

How to handle variable in Batch script nested loop?

the following batch work well until the comment "the following do not perform as expected" I've try any kind of %; %%, ! around the variables but always fail, either do not have any thing or errors! ...
1
vote
1answer
2k views

How to treat the “No instance found” of WMIC command in batch?

In a batch I want to terminate all instance of a process. I've try using: @echo off setlocal EnableDelayedExpansion for /f "usebackq skip=1" %%r in (`wmic process where Name^="CALC.exe" get ...
3
votes
1answer
54 views

How can I remove the last blank line of a wmic command?

In a batch I want to use: FOR /F "usebackq skip=1" %I IN (wmic datafile where Name^="D:\\TOTO.EXE" get Version) DO (ECHO %I) and want to restrict the ECHO, not having an ECHO is on. for the last ...
0
votes
0answers
32 views

windows batch, program started by 'start' command minimized

I am writing a windows batch file to launch my java gui application, but when I run my batch file, my application starts in minimized, how can I bring it to front at start ? I run it on windows 10 ...
0
votes
0answers
40 views

Batch File Property File String Search And Change the Value to user inputting value

I have a batch file to search a string in a property file and after finding the string, replacing its value to anew value...This script was working fine since last month.Now it is doesnot working in ...
0
votes
0answers
36 views

Running batch file in different folders doesn't always run?

So, I have this script because I use a program called Free File Sync on Windows 10 Pro. While copying, I received an error preventing copying over some files. The files in question were downloaded ...
0
votes
1answer
24 views

Mac OS X 10.9.5

I need to run a .bat file on my Mac, the file is a portable version of R called RCommander and I need to run it because it comes with all packages I need to work with and I have problems to download ...
0
votes
0answers
30 views

Pipe loop's output into variable, than check with if else

I have the following batch script: @ECHO OFF SET "TLD=.com" FOR /F "tokens=*" %%i in (%cd%\files\domains-win.txt) do ( whoiscl -r -n %%i%TLD% | FINDSTR /I /C:"Registrant Name" > NUL 2>&...
1
vote
1answer
47 views

Batch: Return the matching lines from pipe's output to the console with regex

I have the following domain checking bash script in Linux: #!/bin/bash TLD='.com' while read -r domain; do whois -H $domain$TLD | grep -oPaq '^.*(Creation Date|record created).*$' if [ $? -eq 0 ...
1
vote
1answer
36 views

CMD Batch rename. Read new names from text file

I have a directory of product images that I'd like to rename to the products's UPC. I have the file name mapping in a spreadsheet, so I can export it to CSV or tab delimited. Given filenames.txt: ...
1
vote
0answers
13 views

Prevent PC from sleeping while running Photoshop batch

I'm running Windows 10 and latest version of Photoshop CC. I started a long running batch and I assumed Photoshop would keep the computer awake, but apparently it doesn't. Is there a setting in ...
0
votes
0answers
24 views

How can I add extra commands/arguments when opening Command Prompt with PsExec?

I'm creating a shortcut to open Command Prompt with SYSTEM privileges, it works fine, but I want the title of the resulting cmd window to be clearly labeled with something like "SYSTEM". So I want to ...
1
vote
0answers
50 views

Mkvmerge batch for change default audio

I want to change the default audio of my files but there are too many. How can I do it with cmd or bat file? This is my code for one file: "C:/Program Files/MKVToolNix\mkvmerge.exe" --ui-language ...
0
votes
0answers
19 views

Create subfolder and move zip files into subfolder

I am needing a batch file that will create a subfolder, and move my zip files to subfolder. Example of what I am looking for Parent Folder MyFolder1 XXXX.zip YYYY.zip ZZZZ.zip ...
0
votes
0answers
15 views

Configure network settings based on available wireless networks

Good day- I work in a variety of locations each with their own IP settings - some static, some DHCP, some wireless, some hardwired. I've written a bunch of batch files to quickly set and reset (...
0
votes
0answers
13 views

Batch converting .rar to .7z - path variable?

I found someone who had written a very nice batch script to convert .zip to .7z, and im attempting to make it convert .rar to 7z. I am able to get the script to work but I cannot figure out where the "...
1
vote
1answer
78 views

WMIC in for-loop

I'm trying to get WMIC output into a variable so I can process it further. I have made a test batch file to illustrate the problem: wmic PROCESS where "commandline like '%%teststr%%'" get ...
0
votes
0answers
17 views

Extracting zip files within zip files

I have a file which contains an unknown extremely high number of zip files, only within each other, and a file at the bottom, like so: zipfile\zipfile\zipfile\zipfile\zipfile..........etc.etc.\...
0
votes
0answers
20 views

Move files in sub folders to parent folder avoiding overwrite by changing filename

In continuation of the question I asked here: I would like to ask how it would be possible to still do the move, but still avoiding the overwrite by changing the filename. Like for example adding a ...
0
votes
2answers
49 views

Batch file unable to access Program files X86

I need to be able to run a simple ROBOCOPY on a backup file that is location in: C:\Program Files (x86). I get an error when I try to test I get an error saying that it doesn't like the x86. I have ...
3
votes
1answer
25 views

batch file to move files from sub dirs to root dir with overwritting files with name conflicts

So requesting some help, I am currently trying to sort out a mess in my google photos. I have downloaded the archive of my google photos and have a bunch of folders with files/photos in them. I am ...
0
votes
1answer
77 views

Move file recursively to parent folder [duplicate]

I'm on windows 10, I need a batch script or a powershell script to solve this problem. I have downloaded the flash tv series, the structure looks like this flash tv series folder episode 1 ...
1
vote
2answers
83 views

Batch compress .avi files with ffmpeg which contain previous date in their name

im trying to manage CCTV footage, and im trying to batch compress them with ffmpeg So far i managed to come up with this command ffmpeg -i "0515 210004.mp4" -b 200000 output.avi But i need to do ...
-1
votes
1answer
36 views

Script to delete folder with time condition [duplicate]

I wrote a command to create a folder named with day's date and copy some file and folders to it. @echo off for /f "tokens=1,2,3,4 delims=/ " %%a in ("%date%") do set wday=%%a&set month=%%b&...
0
votes
1answer
47 views

Delete folder without certain content

I would like to batch-delete all folders which don't contain a specific file. It's about a working folder with hundreds of projects. I want to remove every folder that doesn't contain a "main.c". How ...
2
votes
1answer
52 views

Windows batch: Get the first folder name starting with some value?

I have a batch file in which I pass the name of the folder I want to use as a argument. But now I want to make it a little smarter by letting the user specify only the first few characters of the name ...
0
votes
1answer
65 views

I want to schedule a batch file to execute a command and redirect that output a text file

I want to schedule a batch file to execute a command and redirect that output a text file. This is my current solution: Del \\10.112.232.10\Netbackup_Softwares\Personal\Bharath\VM_Query\switch.txt D:...
1
vote
1answer
27 views

How to put unicode in Cmd/Batch?

So, i'm trying to make a nice batch menu but everytime i try to use unicode's fancy lines i just get random characters. Is there any way to put unicode in cmd and or a batch file?
1
vote
0answers
47 views

How do I use a batch script to find and copy specific files (.pdf) to targeted location from a list? [closed]

We have a lot of files (PDF format) in different folders, these folders are in one root folder. I have a text list of all the PDF file names I need to find and copy from these folders to a targeted ...
0
votes
0answers
16 views

Fix many broken shortcuts in batch in Windows7 [duplicate]

I recently re-organized some folders on my computer, killing upwards to 100+ shortcuts in the process. Rather than manually creating new ones, I was wondering whether there was an automated way of ...
0
votes
0answers
74 views

Batch: Run with GPU command?

I have a laptop with nVidia and Intel graphics. When I launch a programm, by default it uses Intel graphics, but I can make it use nVidia. Question: Is there a way to do the same(run it with nVidia ...
0
votes
0answers
46 views

Do Copy Keyboard Settings to the Welcome Screen via batch script or registry tweak

To copy keyboard settings to Welcome Screen on Windows 7/8/10 you need to perform this steps: Go to Control Panel -> Language -> Advanced Settings Click "Apply language settings to the welcome ...
1
vote
0answers
14 views

how can I get a Batch File to Delete a folder if it doesnt contain a specific file

Hi I'm new here and was hoping someone can help me with a problem I have. Over the years I have acquired a number of ebooks (several thousand). So I have decided to only keep my mobi and Epub books. ...
1
vote
0answers
35 views

How do I edit / create a new batch script to setup a bulk download from a series of links (with script)

A few weeks ago, I posted this question and got a wonderful answer. I tried to apply the same techniques used to the following set of code for another website, but failed. The command prompt window ...
0
votes
1answer
21 views

ffmpeg local expansion and running a command within

Big time n00b question.. I just can't quite figure out what I'm doing wrong. Here is my .bat file: @ECHO OFF SETLOCAL set /p Input= Drop file here, and click enter. set file=%Input% FOR %%i IN (%...