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

How to batch install setup-file (*.exe) on PC?

Instead of repeatedly double-clicking tens of setup files (*.exe), can batch-installing at once be possible? Or at least one double-click is enough to sequentially activate them? The closest Google ...
0
votes
1answer
21 views

Add backslash if a string doesn't have it

I'm developing a command line Batch file on Windows 7. I'm trying to add \ to a dir if it hasn't. This is only a test: @echo off set solutionDir=%CD%\ echo %solutionDir% if [%solutionDir:~-1%] ...
1
vote
2answers
66 views

Why is it errorlevel 0 even if string is not found?

If I run this code: :loop (type "File" | findstr Idle) > nul 2>&1 timeout 1 if errorlevel 1 goto loop Then if the string "Idle" cannot be found within File, it will start over at "loop" ...
0
votes
0answers
14 views

How can I use the directory path of a batch file WITHIN that same batch file? [duplicate]

I want to use a batch file to create directories and copy other batch files to those directories. This is to automatically 'install' different batch programs by copying them to 'program files', ...
3
votes
1answer
37 views

Get mac address of detected bluetooth devices

How can I find out the mac address of all bluetooth devices the adapter has detected (not necessarily already paired with)?
1
vote
1answer
49 views

Windows Command Line - List Network Adapter Components

I'm looking for a way to, in a batch file, get a list of the components (such as NDIS drivers) in use by each network adapter on the system. Here's a screenshot of the info I want in the network ...
1
vote
2answers
33 views

Sending accented characters to Clipboard from a batch file

I've been trying to find a solution to this, but I wrote a basic program to automatically produce an "outage" report more or less, that I need copied into the clipboard so that I can paste it into a ...
0
votes
0answers
41 views

Looking to rename large amount of files using bat script

I'm still pretty new to the use of powershell, scripts, and the like, so I'm sorry that I don't have some form of script to start with. All I have is the specifics on my problem. I have a large ...
1
vote
0answers
65 views

Controlling encoding of redirected win console command output

Here is what I want to do: Redirecting properly the output of console applications (I use the term command in the rest of the message) into a file with 1252 encoding (to make it readable from any ...
1
vote
1answer
35 views

Permanently setting PATH from CMD windows 8

I'm setting up a custom command line utility, and the 'installer' adds a PATH entry. It works after this for the current session. After I close and open the command prompt, the PATH is reset and the ...
1
vote
0answers
42 views

Having a message box used as a variable in batch program

I am attempting to have a batch program pop-up with yes or no options and depending what the user clicks will determine what the program will do. for example: @echo off Echo x=msgbox^("Yes or No?",...
3
votes
2answers
63 views

How to find count of lines present in a file using batch script

I want to count the number of lines in a file using batch. I have gone through this, but couldn't understand as I am a beginner. I have written my own piece of code with basic knowledge. @echo off ...
1
vote
1answer
23 views

Parse an output of a command to disconnect a remote desktop session

qwinsta administrator | findstr Administrator Gives output as >rdp-tcp#26 Administrator 2 Active I need to get only the SESSIONNAME i.e. "rdp-tcp#26" and use in next ...
0
votes
1answer
52 views

How to print password protected excel files with batch script?

I have several folders with password protected excel files (one excel file per folder). On the 16th of every month I have to enter each password and print the excel files which is a little time ...
1
vote
1answer
44 views

Windows Batch to copy one file to multiple directories

I have a rather simple copy and paste batch job. That checks for a more recent file and overwrites it. I was trying to take a single COPY and copy it to a second directory. In simple, this Batch is ...
1
vote
0answers
222 views

Logon Script with net use * /delete /yes

I'm trying to get rid of all manually mapped network drives on all workstations in my domain. I want our end-user's mapped drives to be mapped solely via GPO (GPO's are already in place). I'm trying ...
1
vote
2answers
28 views

can't run console program in batch file

I have a batch file (run.bat) which is to change my IP address setting: netsh interface ip set address "lan" static 192.168.30.77 255.255.255.0 192.168.30.2 The command worked as I expected when I ...
0
votes
1answer
25 views

Create a batch file to add a beginning and end to text file lines

Can anyone show me how to create a batch file to add a beginning and end to each line of a text file? I have a large list and it would take endless time to add this to beginning and end. Even a ...
0
votes
0answers
13 views

Acrobat XI Pro how to suppress Action Wizard messages

I'm running the Action Wizard in Acrobat on Windows 7 to convert files to OCR PDFs. Each time it processes a file a window pops up and the Action Wizard overrides anything else I might be doing on my ...
1
vote
1answer
30 views

simple batch script not working PS, but works in cmd [duplicate]

I have a .bat script that just cds into a directory cddocs.bat cd \Users\Me\Documents\NetBeansProjects\ It is in my home folder. (C:\Users\Me) In cmd when I run it C:\Users\Me>cddocs C:\...
1
vote
1answer
56 views

Batch file append slash to the beginning to string variable

I have a variable containing a path like this a\b\c And I want to turn it into something like /a\b\c I tried like this set SLASH=/ set HOME_MF=%SLASH%%HOME:\=/% and a number of other ways, ...
1
vote
1answer
64 views

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

Background - I'm trying to bulk download some videos from a website. I have all the links and while I can manually open the .bat file and paste the link (and repeat), I was wondering if there is a way ...
0
votes
2answers
26 views

Batch operation returns “Divide by zero error” with the delayed expansion on and a valid operation

The following line of code is run trough my current project : set /a "hp = hp - ((atk*arandom)/((edef*6)/edefbonus))" And here's what it looks like when you replace the variables by their values : ...
-1
votes
3answers
53 views

Drop a file onto a desktop icon to attached it to a new email?

Hello Superuser Community! I already tried searching for a solution but I could not find anything. What I want to do is the following: I would like to be able to drop one (or best any number) of ...
0
votes
0answers
20 views

Batch appending (set side by side horizontally) entire folder of images in pairs using imagemagick

I'm trying to figure out the correct command(s) to batch append (and output with a sequentially numbered (incremented) filename) an entire folder of PNG files, in pairs. i.e. I have a folder of ...
2
votes
2answers
36 views

Read lines from a file into command window and expand variables

Im trying to see if its possible to read lines from a file into the command window and then write them back out to a file. The tricky part is that anywhere in the file where there is text resembling ...
3
votes
2answers
134 views

does start title and tasklist /fi windowtitle reference the same title?

I was looking up the start and tasklist commands, and i noticed 2 things. They both had references to a window title. start "myTest" /b somefile argA tasklist /fi "WindowTitle eq myTest" the thing ...
0
votes
0answers
49 views

Command Line to “batch” unrar many Archives into Subfolders accordingly

in Windows 10, i have an folder F:\archive with about 300 different "File 1.rar" "Otherfilename 307.rar" Knowing Linux better then Windows I spend some time to compile the following command and it ...
0
votes
0answers
52 views

How to connect to a wireless Display adapter automatically through scripts or Task Scheduler?

I am trying to project files to a Samsung TV which has a windows display adapter. I want to automate the entire process. So when the TV is switched on, I want the computer to continuously check for ...
1
vote
1answer
32 views

Batch echo command issue

It is inside the 2 pauses. I cannot understand why it is not working. Do mind the rest. It is a part of TGBF. As far as I can tell the text after the echo is an error, but I don't know why? Does it ...
0
votes
1answer
34 views

Unable to execute FOR loop from batch file

I am trying to execute the following command from inside a batch file: @echo off & for /f "delims=*" %A in ('dir /s /b') do echo %~fA %~zA >> "\path\to\output.txt" I found this command ...
0
votes
2answers
95 views

How to run multiple batch files with one master batch file

I have three bat files I would like to run, in three different directories: directory/bat1/bat1.bat directory/bat2/bat2.bat directory/bat3/bat3.bat I would like to use one master .bat to start all ...
0
votes
0answers
35 views

Batch script with FOR /R and ECHO don't work

The script below don't work, it doesn't create the file with the ECHO command. If I run the FOR line (changing %% by %) in CMD it's working perfectly. Do you know why ? SET TXTDATDIR=c:\TEST\EXPORT ...
1
vote
0answers
26 views

How to batch delete files based on their checksum matching an existing list of checksums

I'm looking for a means of deleting files based on their checksum matching a list of previously seen checksums in a text file or some other list. The context is a large photo organization project ...
0
votes
1answer
73 views

Make ConEmu close after exiting batch file

I am running a batch file from ConEmu and want it to be as little intrusive as possible. I have set ConEmu to run minimized and close on exit. But.. after the batch is run, the window stays open and ...
0
votes
0answers
57 views

Windows Batch - Insert file name and spacer into contents of all text files in a directory and subdirectories

I have a directory and subdirectories of text files like this: my text What I'd like is to insert the file name (with or without the '.txt') and some spacing characters into the beginning of each ...
4
votes
1answer
106 views

Batch script to delete specific folders

I want to be able to run a script at a parent folder that contains other folders, the script will delete all the folders of a certain name. So for example to remove all the bin folders and only them: ...
3
votes
2answers
83 views

Batch file rename with suffix as 01 02 03 04 and so on

I have bunch of files with similar keyword like computer-stock-photo.jpg computer-stock-picture.jpg computer-picture.jpg What I want to do is suffix serial wise 2 digit numbers like computer-...
0
votes
2answers
76 views

How to execute 2 commands inside a single runas?

When executed independently, they execute perfectly. When executed in 2 consecutive runasstatements, chrome.exe is executed before robocopy has had a chance to finish. When placed inside a single ...
1
vote
1answer
87 views

Export a csv file to multiple csv files with batch command

I have a 100 line csv file, with 5 values per line. I am looking for a way to export each line to its own csv file adding a 2 line header to each. I have used the split command seen elsewhere to ...
0
votes
1answer
75 views

Parsing a string variable in a batch file for LAPS / ADU&C

I am trying to implement LAPS (Local Admin Password Solution) on our network and I am having issues integrating LAPS with the ADU&C right-click context menu. My goal is for our Helpdesk staff to ...
0
votes
1answer
45 views

How to do a FOR loop properly in batch script in windows

I am trying to convert from a bash script, this is what I came up with. When I try to run this, I get the syntax of the command is incorrect error. I followed this post and wrote the commands.What is ...
0
votes
1answer
52 views

Losing characters when copying and pasting into a batch file via VBA

I am currently using the following VBA code to copy and paste a range of data in an excel file to create a Batch file. I am running into the following problems: Quotations are being placed around ...
0
votes
3answers
63 views

converting a simple sh script to the equivalent batch script on windows

This is the script that I need to convert to batch file in windows : #!/usr/bin/env sh TOOLS=./build/tools $TOOLS/caffe train \ --solver=examples/cifar10/cifar10_full_relu_solver_bn.prototxt ...
0
votes
0answers
15 views

how to enter commands in a cmd window and keep it open with a batch script?

How can I create a batch script, that opens a cmd window, issues commands in it, and then keeps this cmd window open? I have a production system, where I have to operate quite often using a special ...
0
votes
0answers
7 views

Loading formating into Evernote with text file

I am trying to set up a system to automatically generate and open a Note in Evernote, using a .bat script. I need to the Note to have some formatting and also be able to have some unique content ...
0
votes
1answer
46 views

Change CreationTime using the file name

I name all of my home video files according to an exact protocol. An example is: Aug 09,2005@13.21.12.mp4 Typically, the original file is not an mp4 so I go through the process of converting, ...
0
votes
1answer
119 views

How to output net group command in list format in batch

I'm using the net group "Groupname" /domain command which outputs a bunch of users in the group in the format of 3 columns. There are spaces between the columns. How do I output the command so that ...
0
votes
3answers
3k views

What is the “language” of a .bat batch file on windows?

When windows is running one of these programs what is the actual language being used? I am guessing C++ sorry if this is in the wrong area this is my first question :D
2
votes
0answers
36 views

Converting Multiple .doc files to searchable .pdf

I have a batch command file that runs daily converting data extract files to .txt, .doc, and then to .pdf formats. I run a series of formatting macros in Word on the .txt file before saving to .doc ...