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
2answers
16 views

is there anyway to compress folder individually using 7zip?

This is not my question, but the person who had asked this voluntarily deleted the post. Since it was an interesting task, i figured it out. The OP wanted to zip each folder individually via batch ...
-4
votes
0answers
43 views

How to create Windows batch file to perform these tasks? [closed]

I need to create a batch file that should do the following: Run another batch file in administrator mode (Run as administrator) Once above file is run, delete files/folders from certain directory ...
0
votes
2answers
30 views

how to run a batch recursively

I have a parent folder (BIG_Folder), which contains many subfoldes (folder1, folder2, folder3 ...) in each subfolder a batch file exists, it is always the same (x.bat). I want to run all bats, ...
2
votes
0answers
18 views

Slurm jobs are pending, but resources are available

I use SLURM as a job scheduler and queue for a small cluster (single node with 64 cores). To submit a batch job I use: > sbatch run.sh Where run.sh looks like: #! /bin/bash #SBATCH --ntasks=4 ...
1
vote
1answer
32 views

Looking to rename a batch of cab files to lowercase as well as adding their SHA1 Hash

I need a batch script to rename all the files in a folder their lowercase equivalent, with their SHA1 hash added at the end after an underscore. Example: I have a file called: ...
0
votes
2answers
58 views

Windows 7 dos batch file to open file read second or third line and rename file to found text [closed]

I have about two thousand text files I need to rename, but I need to open the file find the line starting with the letter "O", extract the "O" and the next five characters, close the file, then rename ...
2
votes
1answer
26 views

I have a batch file that echos multiple lines. I would like to output it into the file but the file only shows 1 line

This is what I have: SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION @echo off set num=0 set "suffix=" for /f "delims=" %%s in ('dir /b /a-d /o:gen') do ( if /i "%%~xs" equ "!suffix!" ( set ...
3
votes
2answers
290 views

How to find the PCs name in a batch script?

How would I find the name of the PC running my batch program on it? I would like to find the name of a PC that is running my batch program and be able to store it as a variable. Any help?
0
votes
1answer
39 views

Find IP with Batch

I need to use a command of some sort to find the external ip of the user of my batch file. I have tried many methods but I need the batch file to recognise the ip as a variable of some sort so it can ...
1
vote
0answers
23 views

The Command “copy /b Source+,,” does not work in a Batch Script

I'd like to update the timestamp (Modified Date) of a file in a batch script by using the following command "copy /b Source+,," but it does not work. I tried the same command through command line ...
0
votes
1answer
37 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 ...
-1
votes
1answer
30 views

Script for a batch file that runs a program for a specific period of time

I want a script for a batch file that makes a program run every 10 minutes for 5 seconds each time. In these 5 seconds, the program must be running on top of all the other windows, but out of focus so ...
0
votes
1answer
20 views

pipe + one digit number does not echo

I have a script that reads the row count of file and sets this number in variable ROWCOUNT. So to add footer like this "F|5" to file file.txt with ROWCOUNT minus header I do the subtraction and with ...
0
votes
1answer
23 views

Use existing explorer.exe instance when calling from batch file - Windows 7

In my batch file, I am calling a new Windows file explorer at a specific location by using the following: echo off explorer.exe "C:/Users" The user then navigates to other folders as needed. Then, ...
0
votes
1answer
69 views

Extract multiple strings between two words in a file

I have a text file made this way: hjkhkhkjhkh<start:"xxxxxxxxxxxx:"alt>asdsadasd<start:"yyyyyyyyyyyyyy:"alt>gfhfg ...
0
votes
0answers
18 views

Rename files using cmd and allow duplicates file name

I have my batch file which consists of the following command. REN "H:\April2012\A04\mr_sudheendra_holla_vaderhobli.pdf.1335780379203.ver1" "mr_sudheendra_holla_vaderhobli.pdf" But if duplicate ...
0
votes
1answer
24 views

Cannot use PStool for more than 7 PCs over LAN Network

Below is the batch file command I am currently using to shutdown the remote computers through LAN Network. Here is what it does. I have specified the remote computers IP address in text file named ...
0
votes
1answer
34 views

batch file to run two application and when 1st app closed, other will be close too

Its a game called SubwaySurfer for pc, to run it through your keyboard we need to set autohotkey, what I need is when user click to play a game the autohotkey file will be run too, and when the game ...
0
votes
0answers
22 views

How can I add loopback adapters with the command line and configure them with the command line?

What is the command line to add a loopback adapter with IP 127.0.0.2 on Windows 8.1? I need to add 65,000 ip's to my local machine for network stress tests (connections from many different IP's) for ...
0
votes
0answers
18 views

Batch conditions and variable

I have a question about variable and batch windows. The main goal is : I have files in directory (pattern 0? with ? a number between 0 and 9). First I create a %%nf.bat (filename of each files) ...
0
votes
1answer
22 views

How to rename a file to include remote machine's hostname via batch script?

I have a .bat file that copies a file from one computer to another. During the transfer I would like to rename the file to include the hostname of the computer from which the file originated. The ...
0
votes
1answer
18 views

Variable and Conditions with Batch Windows

I would like to make a batch. The goal is simple : For all files with DSW xtension If my filename contains VU1 so variable1=2 and variable2=2 If my filename contains VU2 so variable1=20 and ...
1
vote
1answer
33 views

Preventing my pc from being shut down remotely

In my college, we use Microsoft Server 2008, and each student has their own account. In my class, students discovered that they can remotely shut down each other's PCs using cmd (the fact that we ...
2
votes
1answer
46 views

Batch Directory Name is too Long

This question was posed as an answer to this thread where running FOR loops in batch with UAC elevation code generates voluminous errors involving non-existent directories. Here is a screenshot of ...
0
votes
2answers
15 views

Powershell - Start Process on Different Drive from Batch CMD

Problem: From the CMD or Batchfile, calling powershell and starting a process from a different drive or the -FilePath is failing.
2
votes
1answer
8 views

Does anyone have a Windows “at /every:” example to explain how to setup a batch file to run the first sunday of every month?

This is the one I have to run first day of the month, but I need to run it the first sunday of every month. at 13:00 /every:1 D:\DBMaintenance\MySc.bat Thanks
0
votes
1answer
25 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 ...
-1
votes
1answer
40 views

Wrong environment Settings invoked in Commands

Getting wrong and extra pathnames in error messages using "For /D", "dir" and "if exist" commands when running the non-Powershell batch code to elevate UAC privileges code here. This has been noted at ...
0
votes
1answer
19 views

Storing info from wmic as variables in command prompt (Windows 7)

I'm trying to write a batch file that copies a folder from my flash drive to the desktop. I want the batch file to achieve this on any pc in my college. the command wmic logicaldisk get ...
1
vote
0answers
13 views

Batch metadata and text extraction of pdf files

I have a set of PDF files, all of which contain text. However, some of these files were somehow not created properly; the selectable text is not searchable or convertible to plain text (the resulting ...
0
votes
1answer
29 views

Windows batch equivalent of “command” in linux bash

In linux bash there's a command command which can execute the "real" command even if you have a function name or a script filename that is named equal to that command. function ping(){ echo do ...
0
votes
0answers
37 views

Batch file unable to run commands after launching putty

I am writing a batch file abc.bat which is used to launch putty. I want the .bat file to go to a particular folder (in PuTTY), source it in csh and go to a particular path on that server. I wrote the ...
0
votes
2answers
85 views

Batch process: Subtraction of images

I have numerous images from a directory that needs to be subtracted to another image(another directory) and I don't know how to do it automatically in batch process. Any idea? The following are the ...
0
votes
1answer
23 views

convert bmp to transparent png

I have a lot of bmp images like these: That I need to convert to transparent png files like: basically the blue color (#00FFFF) needs to turn transparent and the purple color (FF00FF) needs to ...
0
votes
0answers
13 views

Looking for a Batch script or Jenkins plugin

I have a two Jenkins jobs. First one do the build and copy the special version number in a property file. In my second Jenkins job, I read that property file in parameterized variable setup and ...
0
votes
1answer
82 views

Batch converting MP3 and still image PNG to MP4 videos

What do I type in the Windows cmd for this to work? I found a code that should work on Linux but I'm on Windows. The Linux code is: for mp3 in "*.mp3"; do ffmpeg -f image2 -loop 1 -i picture.png ...
0
votes
1answer
28 views

How to start a program and close it right after it's launched with BAT/CMD file?

There are two program A and B. What I want to do is: 1,Launch program A; 2,Close program A; 3,Launch program B; 4,Close program B; How can I write the bat file? My previous work; A.exe TSKILL A ...
0
votes
2answers
49 views

Getting value from file using Windows Batch scripting

Using Windows Batch scripting, I want to get the max_volume value (-2.9 in the following example) from a ffmpeg output written to a log file: [Parsed_volumedetect_0 @ 0000000005428b20] n_samples: ...
0
votes
1answer
16 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 ...
1
vote
1answer
114 views

How can I run a windows batch internal command remotely?

I have two Windows computers A and B, and I want to remotely run a command on computer B. I use the tool psexec, so on computer A I can run: psexec.exe \\10.0.0.2 -u user -p pasword ...
1
vote
0answers
66 views

Automatically run executable files with third party program/script in Windows

It is possible to launch an exe file using a third party program through the context menu. My problem is that an exe file might be triggered by a script or by another application on which I don't ...
1
vote
1answer
49 views

WMIC - how to check if return empty value?

I'm making a batch file to make log of computer (I need save some informations before format PC's on my work...) So I found some commands to create this log, see: rem -- Windows Version wmic OS get ...
0
votes
1answer
27 views

Prevent ConEMU from closing tab after last program exits

What I want is some way to click on ANY batch file from Explorer and see the output without writing a helper script to PAUSE it afterwards. This is a question which seems likely to generate more OT ...
0
votes
0answers
35 views

Create empty MySQL database via batch file

I have read several answers here but can't see to get the syntax right. The task is to get a batch file that inputs a variable (db) and uses that variable to create an empty MySQL database. My ...
0
votes
1answer
28 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 ...
1
vote
0answers
55 views

Batch File to upload via FTP - 550 Permission Denied

I am trying to create a batch file that will upload a single file by FTP every time it is ran. Everything looks good in windows cmd. I get past the authentication of user name and password and after ...
1
vote
1answer
33 views

How can I add a new DWORD using a batch script?

How can I add a new DWORD using a batch script? I know you need to have a elevated command prompt (I think) which I already have the script for. This is the script I have but it’s not working. REG ...
0
votes
0answers
8 views

Can I change dimensions of all PowerPoint images at once?

I have a lot of PowerPoint (2013) slides with a screenshot on each slide, which do not fit exactly on the slide. I can change width and height of an image individually, but can I apply those changes ...
0
votes
1answer
67 views

Set NVIDIA digital vibrance to 100 with a batch file

Yes, is this possible? I'd be so stoked if I got this working. There's this game I play where I like to play it with Digital Vibrance set to 100%. But I hate having to open NVIDIA control panel every ...
2
votes
2answers
66 views

Set the “open command window here” title as the directory it was invoked from

I know how to set the title as current directory in a regular batch. I want to do this for the cmd window that opens when you do a "open command window here" from a windows folder (automatically). I ...