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
1answer
87 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
25 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
77 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
69 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
41 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
21 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
149 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
46 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
37 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
58 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
54 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
190 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
128 views

Processing of images mathematically

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 ...
1
vote
1answer
40 views

How to do shortcut bat files to choose the next login OS - dual boot 7 and 8 [closed]

I have dual boot Win 7 Pro 64-bit and Win 8 Pro 64-bit on a Dell Optiplex 7010 MT. How can I write two batch files on the desktop of EACH OS to tell it to reboot either into Win 7 or into Win 8. ...
0
votes
1answer
44 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
39 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
205 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
45 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
77 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
21 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
450 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
112 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 ...
2
votes
1answer
139 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
58 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
95 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
53 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
86 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
54 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
14 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
211 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
86 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 ...
0
votes
0answers
14 views

Copying files out of sub directories into a new folder without original subdirectories [duplicate]

I have about 120K tiff files that are now stored in about 300 folders, each folder has about 300 to 350 tiff files in it. i need to put all of my TIFF files in one folder. need to do away from the ...
0
votes
0answers
35 views

Windows Script Host

My batch file runs on my PC, but when I run it on the server, it calls the Windows Script Host (WSH) which seems to hang the process. There are no settings for the WSH. when I kill the WSH my batch ...
0
votes
1answer
62 views

batch replace of video track with x264 (or ffmpeg, or avconv)

I have a bunch of .mkv files with diverse content, so I don't know about their audio, subtitle, chapter and attachment contents. Common denominator: They all have one video track. I want to batch ...
0
votes
0answers
20 views

Batch WinRAR Cluster Error

I've recently have had a problem with a small project of a batch cluster WinRAR cracker of numeric. I have a master file that controls all the variables for the clusters and have 8 clusters. I have ...
0
votes
0answers
52 views

Mac Terminal Renaming Bulk files Randomly

I have googled and looked on here but nothing is as basic as I want it. Whats the best way to rename a folder of both .jpg and .JPG files to a random number - I have 250 images and I randomly want ...
1
vote
1answer
17 views

I would like to batch change one colour in a group of PNGs. Mac - freeware software

I hope someone would be able to help me. I have a group of icons in png format. They are all transparent backgrounds with one colour for the actual icon. I would like to change this colour in all of ...
3
votes
1answer
63 views

Batch files to combine multiple files (that have parentheses in their names)

The background: I'm using IFTTT to pull DC Metro bulletins from their RSS feed into a text file for my BBS. The biggest problem is that IFTTT cannot overwrite or append to files, so I get multiple ...
1
vote
0answers
75 views

How to generate URLs to shared files in my google drive in batch? How about create Qualtrics surveys in batch?

I have about 200 images uploaded in my google drive, and I want their URLs. I can, of course, manually click "share" for each one of them to get their URLs then paste them in a text file myself, but I ...
0
votes
1answer
63 views

Execute “tar -cf” command from “send to” batch file to .tar.gz a file quickly

I installed the GNU tar for windows to speed up tar-ing files so I don't have to mess around opening 7zip twice to tar then gzip a file. To speed up the process even more, I tried to write a send-to ...
0
votes
0answers
41 views

Hide cmd.exe Process When Running Batch Script [duplicate]

I have a batch script that I am running hidden by executing it with a vbs. This is great, because it completely hides the cmd window. However, if I look in the Windows Task Manager I can still see ...
2
votes
1answer
46 views

check and warp newest files added

How am I going to automatically check all the files that were added to the directory and then warp it immediately?Because everyday I am downloading hdf files and warping it from time to time is a ...
0
votes
4answers
57 views

Ways to start a program at the same time as cmd

I'm in a bit of a quandary: when I want to start a program at the same time as another program, my normal MO is to make a batch file that goes something like this: @ echo off start exe1.exe start ...
2
votes
1answer
73 views

How to open multiple TGA files then save them compressed as 24 bits in Photoshop?

I have a huge amount of TGA files from the game Counter-Strike (environment files such as sky, grass, water etc) and they are pretty big. There were some other TGA files that I manually opened and ...
0
votes
1answer
83 views

Batch Script Doesnt Delete Folders in a Folder .txt File :(

My batch file's code is: for /f "delims=" %%f in (7profiledeletelist.txt) do rd /s /q "%%f" PAUSE exit In "7profiledeletelist.txt", there are: (will be deleted) C:\Users\1* (I tried *.* it didnt ...
3
votes
0answers
103 views

Is there functionality that CMD has that PowerShell doesn't? [closed]

This is not a question regarding which is better; I am purely interested in use cases where PowerShell cannot perform the same functions that CMD can. The only thing that comes to mind for me is that ...
0
votes
0answers
61 views

Command to output its backend process

I have an application running in windows that has an option to run a command (UI base). I'm pretty sure that the UI base backend is running in a cmd but I dont know what is the exact bin file. The ...
3
votes
1answer
46 views

Index files and folders in windows

I want to create a database of all files and folders within a specific location (say, E:\movies). How can I do this? Is there any software which can do this for me? Otherwise do I need to write code ...
1
vote
1answer
56 views

How can I get ConEmu to open more than 30 tabs?

I have a .bat file which opens 100+ consoles, but I need them in new tabs. Problem is, ConEmu has a max of 30 tabs. I can do this with regular cmd, but its 100+ new windows. I'd prefer them in tabs ...
1
vote
1answer
27 views

Batch update multiple PDFs meta data

I Need to update a lot of old PDFs with newer meta data (File > Properties> Description - Title, Author, Subject...) I have too many to do it manually and could nto find a way to apply the same meta ...