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

Remove substring from absolute path windows script

I am new to windows scripts and I have the absolute path like- /bin/debug/test/abc.xyz.dll and I want to remove the file name and get only path like output: /bin/debug/test/. How should I do that?
0
votes
2answers
17 views

How to extract second word of the string via windows batch

I would like to request an assist for this case. I want to get the second word of title so that I could set it as target file. set title=THE PROGRAM TITLE HERE
2
votes
3answers
22 views

Make batch file wait for service to start when restarting services

I have a batch file that frequently restarts a group of services developed in house. We are soon moving away from these to something more stable, but for the time being the services need to be ...
-1
votes
1answer
26 views

Batch- file to move all files from one location to another in windows?

what I'm after is a batch file that will move all files from one folder to another, with the view eto schedule this as a task to run twice daily. I know the whole move command etc but appears to be ...
0
votes
0answers
11 views

How can I batch convert all of my video files to AAC audio without converting the video?

I've used XMedia Recode to do this and it works great. I set video to "copy", audio to "convert", and it takes 2 minutes for a 2GB file. There's two problems with it for batch work though. It doesn't ...
-2
votes
1answer
23 views

Batch: Cannot read a specific variable

It's me, again. The team suggested we develop a new loading system which automatically detects the type of the save file instead of the user having to select what the type of the save file is. ...
0
votes
2answers
16 views

Error calling .vbs from .bat

I am currently trying to call a .vbs file from a batch file and it keeps giving me an error. This is my batch file: @ECHO ON cscript "C:\Users\Alex.Newton\Desktop\VBScripts\First scripts\This is my ...
-3
votes
1answer
39 views

“The syntax of the command is incorrect.”

I've developed a new feature for my Batch game which gives the user the ability to define the name of their own save file along with the loading system and the new saving system is working properly as ...
0
votes
1answer
31 views

How to run batch file command line argument on another server?

I have Encrypt.bat on \\RDWAPPserver which contains code to encrypt the file and upload it to FTP server by using 2 commandline parameters. Encrypt.bat needs 2 commandline parameters exl: ...
-1
votes
1answer
20 views

How to run my script on logon screen when user logs on or has to change his/her password [on hold]

I want to know how I can automatically run my script on the logon screen when a user changes or when his password expired and has to change his password. Thank you
2
votes
1answer
39 views

How would I query, then toggle Windows updates off and on via a batch file?

Please take it easy on me if I speak out of place is this is my first post. :-) but I've been looking for a way to query the Windows Update service through a batch file and based on its current state, ...
-2
votes
2answers
29 views

Destination and Start in on a batch

On a normal windows shortcut we have the Destination field and the Start in field. Can I do those on a batch ? . Complicators: Windows is on C: The application is on E: The Start in folder is on ...
0
votes
1answer
46 views

How to show a confirmation dialog when a batch file window is closed?

When users click the close (X) button of a batch file window, I want it to show a confirmation dialog asking "Are you sure want to close this batch file?" with Yes/No options. How can I do this?
0
votes
0answers
14 views

VLC Batch file playback

I'd like to be able to run a batch file from my computer that does the following: Open VLC Play a video file until it said file ends. Stream webcam (dshow://) whilst playing a sound file only after ...
0
votes
1answer
12 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
2answers
59 views

I can't run .bat and .cmd files with start command (Windows 7)

I can run .bat and .cmd files typing his names in windows console, but if I run with start "" file.bat I get this error: System can't run specified program. I have tested with a very simple file ...
1
vote
1answer
49 views

How to upload file in FTP server using batch script?

I have created batch file called FTP_automation.bat which contains code below SET MyPath=E\PGP\test_pg ftp open 142.245.30.165 21 TESTA9MS test11 binary put %MyPath% quit Pause The thing is when I ...
0
votes
1answer
15 views

mailto command line not able to set additional parameters

I am trying to create a simple batch file to send an email. I am following steps found online and came up with a simple example like this: START ...
0
votes
0answers
23 views

Ampersand & special character on a Active Directory Name and CMD commands

I have a group that part of its name contains an ampersand & I am trying different commands for example dsquery group -name A&I-group but it does not work I tried escaping it using the ...
2
votes
1answer
20 views

Batch File XCOPY Invalid number of parameters

I'm trying to create a backup batch file, it's been a number of years since I last did one and I'm having a bit of trouble. I am creating a folder in one location with the date and time in the folder ...
-1
votes
4answers
62 views

How do I make a registry entry with command prompt?

How can I make command prompt (batch) add this entry to the registry? To set the value of the LocalAccountTokenFilterPolicy registry entry Open the registry key: ...
1
vote
2answers
78 views

Copy all files from a list of folder locations

I have a list of folder locations from which I would like to copy all the contained files at these locations. The list of folder locations are stored on a seperate line within a text file (.txt). All ...
2
votes
1answer
32 views

How to pass parameters in batch file and zip the file using 7z.exe?

I need to create a batch file as per below requirements 1) pass path1 & path2 while running the batch file exl: testrun.bat E:\ERP\test1.txt E:\ERP\header.txt 2) Need to store these command ...
0
votes
0answers
47 views

Set Windows 7 to “Performance optimized” under Visual Effects with Batch script

I have this .bat script to start a specific game: @echo off if not "%~1"=="p" start /min cmd.exe /c %0 p&exit start "" "GTAVLauncher.exe" timeout /t 60 /nobreak >nul taskkill /f /im ...
0
votes
1answer
25 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
0answers
16 views

Term service will not start

I just reinstalled Windows 7 professional and the first and only thing I did was run these in the command prompt to enable remote desktop: reg add ...
0
votes
1answer
49 views

TOUCH a batch file from itself

I'd like a batch file to touch itself to an arbitrary date/time. I've tried... touch.exe -xamq -t 201010201020 -- batch.cmd start /b "" cmd.exe /c "touch.exe -xamq -t 201010201020 -- batch.cmd" ...
1
vote
1answer
42 views

ffmpeg | batch convert | make same filename

How would I use ffmpeg to create a batch convert file for sample rate conversion, such as: $ ffmpeg -i *.wav -ar 22050 *.wav Take note, that i'm only doing a sample rate conversion, but in the end ...
-1
votes
3answers
49 views

Commands not executed with %comspec% /k

I am trying to execute a .bat file with a set of commands which can be executed individually through the command line, but not all together through the script: %comspec% /k ""C:\Program ...
0
votes
3answers
42 views

Use batch to make duplicate files based on one extension

How can I make copies of some files with a specific extension (but changing the extension) just based on their extension? I've tried just showing those files but get nothing: @echo off for %%f in ...
0
votes
1answer
23 views

Getting GUID from Mountvol in Batch file

This is sort of silly, but today is the first day I'm using batch scripts, so bear with me. I'm using the following code to find a particular drive letter assigned to a volume. set ...
0
votes
0answers
12 views

netsh wlan will not show computers on network

I am using the following command to create a WiFi Hotspot: netsh wlan set hostednetwork mode=allow ssid=SSID_NAME key=PASSWORD netsh wlan start hostednetwork pause There is just one problem though, ...
0
votes
2answers
35 views

How to write to a batch file to tell it to write to another batch file

How to write to a batch file a command which itself writes to another file. Basically what I'm trying to achieve is this File1.bat echo abc >> op.txt File2.bat echo abc >> op.txt ...
0
votes
0answers
19 views

Robocopy won't work with Task Sheduler in Win7

I need to copy file from server to local disk cca every 5 minutes. Created batch file work fine but from Task scheduler it does nothing. The Batch file looks like this: ...
0
votes
2answers
65 views

%%f in a batch file with Windows 7 Professional 64 bit

I have a line like the following in a several batch files: FOR %%f IN (%*) DO something.exe %%f I've used them for a long time with no problem. I recently had to replace my hard drive and had ...
0
votes
0answers
25 views

Running Batch files when a Pop up message appears from another app

I need to run a batch file when ever a particular Pop up message occurs. Basically I have a batch files, but I cannot directly call it from my application. but I can create a Pop up message from my ...
1
vote
1answer
29 views

IF statement in batch file not working properly

@ECHO OFF PAUSE IF EXIST "C:\Program Files\NexphaseV6\ECF" ( ECHO Directory exists! PAUSE ) ELSE ( MKDIR "C:\Program Files\NexphaseV6\ECF" ECHO Directory made! ) PAUSE When I run ...
-1
votes
0answers
16 views

How do I launch Robocopy with a scheduled batch file and not have the command prompt appear? [duplicate]

I'm using Robocopy to keep two hard drives constantly synced up. I've created a task which runs the following batch file: @echo off robocopy "D:" "L:" /MIR /Z /MOT:1 /MON:1 /XA:H /R:1000000 /W:5 ...
0
votes
1answer
61 views

Delete all files in the folder except one extension(say .idf) using batch file [duplicate]

My current code to delete all files in a folder older then 2 days is : forfiles /p "C:\Test" /s /m *.* /c "cmd /c Del /F /Q @path" /d 2 There is one .idf file among all other files. I want to ...
1
vote
1answer
36 views

WMIC |more has extra rows when .csv opened in Excel

I am trying to output the name and version of each program installed on my system to a .csv file. I could do something more complicated with VBScript, but would prefer to keep this very simple to ...
0
votes
1answer
22 views

Automatically enable telnet services with batch

Even after installing telnet it will not work until you go services.msc and enable Telnet by changing the setting to automatic. Is there a way I can do this preferably with cmd or otherwise with ...
2
votes
0answers
40 views

What are the underlying Windows7 mechanics that are responsible for opening selected files via key 'Enter'?

I need to create a batch script that opens n files, of same type and same suffix, with program p, without creating n instances of p (i. e. use multiple tabs instead of multiple instances). For some ...
0
votes
3answers
49 views

Have the command prompt launch an application like Notepad and block until it is closed

I have a Batch script I essentially want it to present the user with a notepad window opened with a configuration file for the user to edit each time they run the script, and I want the Command Prompt ...
2
votes
3answers
45 views

Parse string using batch script

How can I parse string using batch script? Goal is to save in a array everything under Import: and strip out #head for example --> //MPackages/Project/config/abc.txt and ...
0
votes
1answer
14 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
13 views

pushd with rd dont work as I want

have done like this pushd \\somedrive.se\Install\Paket\XXX\ echo "start..." for /f %i in ('dir /a:d /b bu* ') do echo /q %i popd and get this output when running from a script: ...
0
votes
1answer
39 views

Windows: How can I use the command line to set registry permissions

OS: Windows 7 Desirable Method: Command Line Other acceptable methods: VBScript How can I use the command line to set registry permissions? I found the REGINI utility, but I'm not having any luck ...
0
votes
2answers
53 views

Batch - How to cat multiple files together without header records

I'm attempting to merge multiple files together with the following command: copy test1.txt+test2.txt test3.txt This works just fine, however, the files I'm attempting to merge contain header records ...
2
votes
1answer
32 views

How to crop images in batch and then re-crop the same way

I am getting automatically generated screenshots of our application, some of which need cropping, since they may only relate to a pop up window or some small portion of the screen. Is there some way ...
0
votes
0answers
21 views

Why isn't XCopy command working in batch file?

I am trying to run a simple xcopy batch script but I am facing some difficulties. Here is the script; SET SRC=C:\FOLDER1\FOLDER2 SET DEST=V:\FOLDER1 FOR /D %%d in (%SRC%\*) do xcopy /S /I /y ...