Text file containing a sequence of commands or program invocations.

learn more… | top users | synonyms (1)

0
votes
0answers
608 views

“There is no disk in the drive.” error message from an application that was just copied from a CD with batch file xcopy but doesn't require it at all

All, I have an interesting problem that I have looked everywhere for an answer and have come up short. Hopefully someone out there can shed some light as to why this is happening. I have a CD that ...
1
vote
2answers
2k views

Prevent exe from opening a new command prompt window

I am on windows 7 command prompt. When I run the following command "C:\Program Files\abc.exe" help > out.txt abc.exe is a third party program which displays some info. What happens is that a ...
0
votes
1answer
4k views

Delete SFX file after extraction

I created a SFX to extract some files. After the extraction, I need that the SFX file is deleted. As far as I have seen, WinRar does not offer such option. So I thought to run some DOS command -prompt ...
0
votes
1answer
1k views

CMD Open 2 programs then close of 1st kill the other

I have two exe file I need run at the same time, and when the first get closed close the other one. start programA.exe start programB.exe onclose(programA.exe) taskkill /im programB.exe Not ...
0
votes
3answers
6k views

/ was unexpected at this time

I am getting "/ was unexpected at this time." while using the below for loop for some cases only. for /f "tokens=1,* delims=;" %%m in (file.txt) do ( echo Inside Loop echo %%m ) I'm ...
0
votes
1answer
460 views

Computer name will not echo in batch file

I have a PDQ installer which registers 2 DLL files and logs the results to a network share. If I run the PDQ on 1 machine it echo's the computer name fine, however if i run the installer on multiple ...
-1
votes
1answer
193 views

How to write cmd shim for msbuild?

People in my office often ask me 'how do I run those tests?'. I tell them, browse to the Build folder, open a command prompt, and run msbuild /t:Tests. That works for me, because msbuild is in my ...
2
votes
1answer
1k views

Install TortoiseSVN with a batch file

I am looking for a way to install TortoiseSVN via a batch file in order to automate the process of setting it up on several Windows machines. Is it possible to do that maybe with the official ...
2
votes
2answers
835 views

In a specified folder, how can I recursively delete everything except “.mkv” and “.nfo” files?

I'm trying to figure out the code for a batch-file (Windows) that In a specified folder recursively deletes everything except files with a certain extension (i.e. .mkv and .nfo)? Something like this, ...
3
votes
1answer
2k views

How can I do string translation on the windows command line

If I have something like set value = c:\\some\\path I want to convert this to c:\some\path. How do I do this?
2
votes
2answers
790 views

Windows script to run as a batch to replace character in list of file names

I have 4 files as below: C:\Documents and Settings\vm\AC R\test JE.BOS.20130516.CSV JE.BES.20130516.CSV KFROPN.SAVEFILE.CSV KFBAD.SAVEFILE.CSV I have to replace "." in the filename with "-". But ...
0
votes
1answer
1k views

Find all MKV, extract English subtitles, remove all subtitles, delete original MKV from subtitles removed [closed]

So far: @echo off cls set rootfolder=C:\ echo Enumerating all MKVs under %rootfolder% echo. for /r %rootfolder% %%a in (*.mkv) do ( for /f %%b in ('mkvmerge --identify-verbose "%%a" ^| find /c /i ...
5
votes
2answers
4k views

Find all MKV files and remove all subtitles

I'm currently looking at a Windows program called mkvmerge. I would like to create a batch file to find all MKV files recursively from a specified path, and remove all subtitles from the MKV files ...
4
votes
1answer
3k views

How to call a cmd on a remote server without having the absolute path

I would like to call a cmd (let's call it x.cmd) on a remote server. The x.cmd will return a log file in a log folder. Problem is this log folder in x.cmd doesn't have an absolute path (just a ...
1
vote
1answer
35k views

Close command prompt after executing batch file [duplicate]

I have this in a .bat file (windows 7): taskkill /F /IM CouchPotato.exe TIMEOUT /T 5 CouchPotato.exe exit (The couchpotato tends to crash alot.) The command prompt stays open until the process ...
0
votes
1answer
753 views

Windows Batch file to replace a single character in Windows filenames [duplicate]

I have a directory which consists of many files as below. But my requirement is to change the .CSV filenames only. Name of the Dir: c:\files\ bac.accdb KFBAROPN.SAVEFILE.CSV KFBARTRD.SAVEFILE.CSV ...
0
votes
2answers
7k views

Run a silent batch command on Windows

I have a .bat file to run some programs (Apache httpd, Tomcat, ecc.). These programs have their own window and if I just type this into the .bat file: ../apache/bin/httpd.exe ../tomcat/bin/catalina....
1
vote
3answers
52 views

Need help sorting

Ok, I get a report every day, a passenger manifest. It is just given in the order that they take the reservation, not the actual time for the passenger pick up. Each order contains 4 lines. Line 1, ...
0
votes
3answers
1k views

If statements causing batch file to crash?

I am having trouble using IF statements in a batch file. I have it set up with a set /p but when the code gets to the IF statement it closes. This file outlines what I mean: @echo off set res1=word ...
3
votes
2answers
1k views

How to start a de-elevated cmd from admin command prompt

I have an administrator command prompt. I'd like to load another command prompt from here without administrator priveledges. I'm pretty sure its some usage of 'runas' but I can't find the ...
0
votes
4answers
4k views

.Bat xcopy - special characters

this is the code of my .bat file: @echo off xcopy "C:\Users\Administrator\věc" "C:\věc" /e /i /h echo Done pause However it says:File not found - výc. See ě char changed into ý Why is it so? ...
1
vote
2answers
4k views

How to input YES in a batch file automatically?

I am uninstalling Citrix client using a batch file. The batch initiates the uninstall successfuly, but I need to input YES (for confirmation) automatically. How can I do this in the batch file?
0
votes
1answer
128 views

.bat file xcopy based on operating system

I'm having trouble creating a .bat file to do the following; IF OS xp run xcopy IF OS Win 7 run xcopy Else exit To keep it simple I would like to the use IF EXIST "C:\Program Files (x86)\." THEN ...
0
votes
1answer
524 views

Using Command Prompt to create Retina Vulnerability Report CSV

I have scanned several computers on my network which have been flagged as needing certain fixes. I am able to generate reports in Retina fine using the GUI report view, however, I would like to be ...
2
votes
3answers
5k views

Windows XP xcopy files with extensions recursively

I have a single-line script that copies all ".ext1" files from current folder to destination folder recursively: xcopy *.ext1 D:\dest /s /d /y It works perfectly. Now I want to copy all *.ext2 as ...
0
votes
1answer
1k views

How can create a password prompt in a batch file?

For a batch thing I'm making, I need to know how can create something like a password system, that hides the text you're typing and/or replaces it with asterisks (*) – so nobody can see what I'm ...
1
vote
2answers
142 views

What are the slashes with letters (/b, /m, /e, /p, …) used for?

What are the slashes with letters for – as seen in set /p or for /f etc?
-2
votes
1answer
533 views

Windows Batch make file not run if wrong key pressed?

I'm trying to make a quick little installer and uninstaller app, because I seem to use these little resources a LOT, and it's set up to have y mean uninstall, and n mean end the script, standard stuff,...
1
vote
3answers
10k views

Upload folder with cURL and FTP using Batch file on Windows?

I am trying to upload a whole folder, including it's sub-folders and files to a folder on my server from a Windows batch (.bat) file. Below is the command I have for the Upload part... curl -T E:\...
7
votes
3answers
16k views

Ping every IP address in a text file?

Let´s say I have here a text file with some computer names (each line == 1 name): computerA computerB computerC ... Is it possible to create a batch file that is pinging all of these computers? And ...
4
votes
2answers
42k views

How do I actually open a program from a batch file? All it does is open a command prompt with that file name [duplicate]

I'm currently trying to learn Batch file scripting so maybe I'm just not seeing what I'm doing wrong but I am just making a very simple batch file that opens up a text file. Here is the code I am ...
1
vote
2answers
4k views

Leave cmd windows open (called from batch script)

I am launching 4 executables from a batch script: @echo off start ../../../../LD_Server.exe 12321 23432 11221 3 start LD_Client.exe 12321 pero start LD_Client.exe 23432 tina start LD_Client.exe 11221 ...
7
votes
2answers
4k views

Wildcard Services restart

Currently, we have setup a .BAT file which lists all services to start / stop them eg. SC start SERVICE SC start SERVICE SC stop SERVICE SC stop SERVICE We add new services all the time and the ...
1
vote
0answers
478 views

Issue with running Winzip script in batch file through Informatica

I am facing an issue while executing the winzip script through a batch file in Informatica. I have prepared a batch script with below winzip command. FOR %%f IN (%WorkingDirectory%*%FILE_VAR%*.txt) ...
0
votes
3answers
213 views

How to add files to a hidden rar

I have a rar that is hidden.I want to add more files with it using winrar (preferably); without make visible is there any way to do it with cmd or batch file?
0
votes
3answers
944 views

cmd.exe strange behavior. Not recognizing desktop anymore

I was trying to add a tracert command to a .bat file. At the cmd.exe I was writing: tracert 111.111.111.111 > desktop\tracert.txt and it ran ok. I've created a bat file like this: ::@echo off ...
1
vote
1answer
464 views

Write a dummy file into every subdirectory?

I want to copy a dummy text file into every subdirectory of a given directory on a network drive (Windows). Because we're looking at hundreds or thousands of subdirectories, I can't do this manually, ...
0
votes
0answers
698 views

How to open Windows command prompt from bat file pre-configured?

For my command prompt window on XP I have configured its window size, font, other settings. So when I open it from the Start menu it is opened pre-configured with my settings. But when I open cmd ...
1
vote
1answer
502 views

How to specify the target directory for LibreOffice 4.0.2.2 .msi file?

How can I specify the target directory for the LibreOffice 4.0.2.2 .msi installation? The .msi file is here: http://downloadarchive.documentfoundation.org/libreoffice/old/4.0.2.2/win/x86/...
1
vote
1answer
2k views

Is there a way to not override existing files when using pscp?

I am trying to copy files from a folder on a server using a batch file. However I don't want the files in the destination folder to be overridden. This is what i have: set /p address=ip address: ...
0
votes
3answers
3k views

How to pass command to running java application using a batch file

He this my seem a little basic and simple but I never did this before. I have this minecraft server and It starts up wit a batch file containing: java -Xms1012M -Xmx1012M -jar craftbukkit-1.5.1-R0.1....
3
votes
3answers
1k views

Batch file to poll a folder for new files

I want to write a batch file which is triggered whenever a new file is added to a particular folder. I can schedule a task using schtasks. But I am looking for a solution based upon interrupt kind ...
-1
votes
1answer
3k views

PuTTY configuration in a command line

is there a command which configures the PuTTY to open up with "Session Logging" in "Printable output". I could do this manually, but i want to put this in a cammand line which will configure the PuTTY ...
0
votes
2answers
3k views

open a command prompt and setting the default path

I want a .bat file which opens a command prompt and then set my default directory also set the enviromenet variable JAVA_HOME For now I am manually openning command prompt and then setting my project ...
1
vote
1answer
3k views

What are the command extensions for CMD's COLOR command?

The help for CMD.exe lists the COLOR command as being affected by the ENABLEEXTENSIONS arguments. It further states to see what those extensions are you need to look at the command's local help. ...
1
vote
3answers
12k views

Batch file to delete folder and its contents

I'm trying to write a batch file that would loop through a directory and delete any folder that is called "SAMPLE". Here is my code so far, any help would be greatly appreciated! @echo off title ...
0
votes
1answer
103 views

Find all the files of a specific extension and put them to a rar or zip

i want to find all the *.pdf files(including the pdf with the same name)for all 3 of my partitions C,D and F and put them into a .rar or .zip.when i started i wanted to just copy the pdf into a file ...
0
votes
1answer
331 views

what is this command doing in batch file?

I have this command in .batch file. Can someone explain me what it is doing? ftp -d -s:c:/somefolder/file_xfer/ftpcmds.txt > c:/somefolder/file_xfer/xfer_prt.txt I need to know because I am ...
0
votes
0answers
138 views

Adobe command line to encrypt files

I have the task to find a command line to use a batch file to encrypt pdf files. There a pool of pdf files which should be converted in secure pdf files (all with the same password). I would like to ...
1
vote
1answer
2k views

How to execute Chown -r linux statement in windows

Can you please help me in executing chown -R linux statement in windows batch scripting. Thanks and Best Regards, Aman