Text file containing a sequence of commands or program invocations that does not need user intervention.

learn more… | top users | synonyms (1)

3
votes
1answer
32 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 ...
2
votes
1answer
12 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 ...
0
votes
1answer
18 views

Close command prompt after executing batch file

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

Windows Batch file to replace a single character in Windows filenames

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
45 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 ...
1
vote
3answers
33 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
2answers
44 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
60 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
3answers
45 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? ...
0
votes
2answers
53 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
28 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 ...
-1
votes
0answers
35 views

Please recommend a way to tidy the text of a windows .cmd file [closed]

Please recommend a way to tidy the text of a windows .cmd file Windows .cmd files have no intrinsic formatting. Some good suggestions for "manually tidying" are ...
0
votes
1answer
34 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
0answers
37 views

batch script to use table data for file name [closed]

I have stored the count of files in a table already.I need to retrieve the count from table to the batch out file after the filename. e.g. xyz001. Below is the script-: bcp "select * from Table_name" ...
0
votes
0answers
27 views

Finding not corrupt files using hashes with minimum hard disk use [closed]

Today I have one really interesting problem for all SuperUsers. After hard disk crash 80% files are recovered with folders. But still, some files (all different type) that software is saying is 100% ...
1
vote
3answers
61 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
76 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
59 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
2answers
32 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 ...
0
votes
1answer
69 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 ...
4
votes
2answers
45 views

Ping every ip in a textfile?

Let´s say I have here a textfile 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 ...
0
votes
0answers
53 views

Wants to create a Batch file with following conditions

I'm having one great challenge according to create a batch file. Here is my situation I'm having folder full of folders and files(note all the files are in ".apf" extension). I want to create a empty ...
1
vote
2answers
83 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 ...
0
votes
2answers
84 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 ...
1
vote
1answer
38 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
40 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
55 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
84 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
53 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
72 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 ...
0
votes
0answers
16 views

Deploying IIS website via command line HTTPS using Appcmd

I need help deploying a number of websites via command line, I know I can do this with the following code, but need the sites to be HTTPS and their certificates specified which have already been ...
1
vote
1answer
97 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: ...
0
votes
0answers
50 views

How to run robocopy as non admin without having to share folders for read/write access - WINDOWS 7

I have a basic bat file which copies files from one directory to another set SOURCE=\\T4\D$\TV set DESTINATION=\\T4\E$\TV robocopy /MIR %SOURCE% %DESTINATION% When i run as a user (member of the ...
1
vote
1answer
37 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
133 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 ...
1
vote
2answers
61 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 ...
0
votes
1answer
191 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
67 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
78 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. ...
0
votes
2answers
98 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
9 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
100 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
31 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 ...
0
votes
1answer
63 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
1
vote
2answers
56 views

Need a Batch Toggle that will Launch/Kill Applications when run.

I have a great batch toggle that will show hidden files when run, then hide hidden files when run again. I am wondering if I can create a similar file that will kill a series of work applications ...
0
votes
0answers
19 views

file association batch file windows 8 [duplicate]

I'm trying to create a batch file that will associate .myroom file extension to myroom.exe program in windows 8 so whenever user clicks on a .myroom file, it will open it using myroom.exe software. ...
3
votes
2answers
249 views

Windows batch file if else usage

Sorry I am new to this stuff. I'd like to run in a certain sequence the same bat file with different parameters. I wrote a very simple batch file: @echo off REM Note: to see all command line usage ...
2
votes
1answer
60 views

How do I replace text inside a FOR command?

Inspired while writing my other question (which i now deleted) (sometimes talking to the duck does help) I think I found a solution to my problem but I don't know how to do it. I have the following ...
-5
votes
3answers
188 views

How to kill Java.exe from a Windows Batch File?

How do I write a batch file script which will kill the java.exe process? I intend to run it from the Windows Task Scheduler. Thanks.
-1
votes
1answer
198 views

copy last modified files and folders using batch script from one location of server to other [closed]

@echo on set SOURCE=\\sourceservername\c$\temp set DESTINATION=\\destinationservername\c$\temp xcopy %SOURCE%\* %DESTINATION%\* /s /e /i /Y PAUSE I want to paste last modified file from ...

1 2 3 4 5 8