Script files that are executed by the Windows command-line interpreter.

learn more… | top users | synonyms (8)

0
votes
0answers
12 views

How to remove lines (or text in given lines) from file in batch?

My goal is to create batch script that removes line itself (if possible) or text in given lines from files such as css file. css file line 199 200 /* K2START */ 201 .foo { width: 1 } 202 ...
0
votes
2answers
22 views

Launching .bat from php gives me a error 'java' is not recognised

When launching the .bat with php i get this "java is not recognized as an internal or external command" but when just clicking on the .bat in windows it will launch fine. here is the code im using to ...
0
votes
0answers
19 views

Windows batch script and plink.exe

I would like to combine Windows batch script and plink.exe tool (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) and run as loop but no luck, below is mine. thanks for your help ...
0
votes
1answer
26 views

task in task scheduler failing when executing batch file

I have a task set up on a windows server 2008 R2. This task is setup in the task scehduler to execute a batch file that backs up a mongo database, every 4 hours. I have it set up the same on 2 ...
0
votes
4answers
35 views

Run a specific batch command in python

What if I want to include a single batch command that isn't already in a file in python? for instance: REN *.TXT *.BAT Could I put that in a python file somehow?
0
votes
1answer
17 views

Copying and renaming a file into the proper subdirectories

I have a particularly tricky batch scripting request. I have a file/folder structure like this /mapcfgs/ /folder 1/ somefile.new somefile.old /folder 2/ someotherfile.new ...
1
vote
2answers
27 views

Running bat file with java processbuilder

I am trying to execute .bat file using java process builder but it does not starts the process. Please tell me what i am doing wrong here. This code works fine with linux envoirnment when I replace ...
2
votes
1answer
29 views

How to prevent batch window from closing when error occurs?

I'm trying to write batch script to create a folder if it does not already exist. Following up the online examples, below is my script. The problem is; first pause works, then probably due to syntax ...
0
votes
2answers
28 views

Putting multiple commands into one batch file

I feel like this has to be so simple and somehow I'm just missing something. I have 3 commands that I have to continuously execute back to back. How can I put those all into one batch file? Here are ...
0
votes
1answer
13 views

Visual Studio Post-Build Events and Batch Commands

I didn't find any built-in alternative, so I'm using the following post-build command in my project to obtain the resulting assembly version: FOR /F "tokens=4" %%F in ...
2
votes
1answer
36 views

Difftool for binary files in git

I have made git to diff some binary files by compying the files to a directory in the temp folder in windows using a .bat file (or batch script). The script, copies the original file and makes a ...
0
votes
2answers
22 views

java runs the batch file. - cant insert command

I am creating a Process in java which opens my batch file and runs perfectly fine. Process p = Runtime.getRuntime().exec("cmd /c start c:\\blah\\example.bat"); OutputStream out = p.getOutputStream(); ...
0
votes
1answer
27 views

needing to iterate through a folder and store documents into a variable

I need to iterate through a folder and collect all the documents and store them into a variable. Im stuck on how exactly to do this process. (has to be done as a batch file) Currently im here: ...
1
vote
0answers
14 views

FTP batch script hangs at ftp> prompt

I'm trying to execute the following batch script to copy file from ftp to local directory. However, I'm only able to login to the ftp but can't get the rest (bold code) of the script to execute. The ...
0
votes
1answer
19 views

Want to run cc cleaner over network - need batch file that prompts for computer name and user name.

I want to be able to run a .bat file on my local computer where it will execute the command: PSEXEC \Taylor-PC -c “C:\Users\Taylor\Downloads\Clean.exe” -u TaylorGibb –p Password Where the ...

1 2 3 4 5 688
15 30 50 per page