Script files containing a series of commands that are executed by the Windows command-line interpreter.

learn more… | top users | synonyms (8)

0
votes
0answers
27 views

Is it possible to run a batch file just before completion process of exe file in install4j

I have to group jboss server , postgres database and test.bat file into demo.exe . This process can be done using install4j but i need to run a batch file i.e test.bat just before the installation of ...
1
vote
2answers
72 views

Findstr command in for-loop stops after a certain line

I have this snippet of script: for /F "tokens=1* delims=:" %%a in ('findstr /N /C:"%SECTION%" /C:"%TARGET%" %BASE%') do ( :: Stuff: ) echo Search Parameters not found ...where SECTION and ...
0
votes
1answer
9 views

Using wget to get an excel files with FOR loop syntax on batch/CMD (*.bat) programing

Refer to My question Looping using FOR in batch (*.bat) / CMD. I want to use wget to get an excel files. excel01.xls --> link : http://portal/excel01.xls excel02.xls --> link : ...
0
votes
1answer
47 views

close a windows bat and do some actions

here my question is I want to close a windows bat dos window directly, and when the close action is invoked, some actions or another bat should be invoked, how can i implement this? what I am doing ...
0
votes
2answers
23 views

Why is my code to enter input to a batch file not working?

I'm trying to write to a loaded batch file process, but I cannot figure out how to do the equivalent of a return. Java Code: import java.io.DataInputStream; import java.io.DataOutputStream; import ...
1
vote
2answers
25 views

launching java with UseShellExecute

Having some trouble finding out why some can run my application which is a minecraft launcher, it creates a .bat file and runs it using UseShellExecute. Not sure if its because of UAC crap or ...
-2
votes
0answers
24 views

Brians Kompactor [on hold]

I have downloaded a compression tool called "Brian's Kompactor" (Lemon) to compress folders into .kom files but it seems to have some bugs in it that i'm not efficient enough in python to figure out ...
10
votes
11answers
50k views

Windows batch file file download from a URL

I am trying to download a file from a website (ex. http://www.foo.com/package.zip) using a Windows batch file. I am getting an error code when I write the function below: xcopy /E /Y ...
0
votes
4answers
84 views

Run Java project (built in eclipse) using Batch File

I want to run my java project which i've built using Eclipse IDE. Now my goal is to create a batch file which will execute my project with one click. i referred question , but didn't get any idea. ...
0
votes
1answer
13 views

Windows, runnig script with variable paramameter, for cycle

There is a list of text files that needs to be processed. Their names are samples\file_1.txt ... samples\file_100.txt A script calls file test.exe with 2 parameters. The first and second parameters ...
5
votes
7answers
14k views

Copy files on Windows Command Line with Progress

Does anyone know of a windows commmand-line ( available on XP Pro or later by default ) that could copy a file while showing progress. I do not care if the progress indicator is in a terminal or a ...
197
votes
15answers
317k views

Batch file to delete files older than N days

I am looking for a way to delete all files older than 7 days in an MS-DOS batch file. I've searched around the web, and found some examples with hundreds of lines of code, and others that required ...
0
votes
1answer
19 views

Batch Make 100MB Archive max with all files contained into a folder (Recursive)

I am looking to create a program that would zip (using 7zip) all files contained into the folder (Recursivly) into an archive until the archive hits 100MB. Whenever it does, it would join in the .csv ...
1
vote
2answers
33 views

Running batch file, call another batch, ctrl+c out of that, then return to the first?

I have a batch script which mount's a .vhd file and creates a junction point, the it call's another batch script which runs some things on the mounted vhd/junction point. When that script finishes, it ...
0
votes
7answers
2k views

Script to run .jar file on Mac OS X

I want to run batch file (similar to Windows) on Mac OS X to run a jar file, after search I found it run batch script. I am not getting proper link from where I can take help. How can I create ...
0
votes
1answer
37 views

How to use sed to convert ASCII to URL with percent encoding

Am using sed to build URLs with percent codes. Chemicals may be represented using the simplified molecular-input line-entry system (SMILES). See: http://en.wikipedia.org/wiki/SMILES Here is the ...
0
votes
1answer
13 views

Copying files and renaming files into the original folder using Powershell

I am very new to the scripting process. I've been googling my problem for over a week, and have found snippets of pieces of what I need, but I can't figure out how to put it all together. I need ...
0
votes
1answer
191 views

Test Settings setup and cleanup scripts

I am trying to run a batch file script from Microsoft Test Manager using Test Settings, but it gives an error. TestOutcome 'Error'; Message 'The setup batch file exited with error code 1.' My batch ...
0
votes
1answer
16 views

Why Does Output of This Command to a File Work Differently Inside a .BAT Script?

wmic process get name,Processid,commandline >> test2.txt Works just dandy from the CMD.EXE. However, it does not work from a .BAT script (no output file is changed or generated). The echo ...
0
votes
1answer
23 views

Command works if pasted in Command Prompt but not when run from a batch file

Trying to print out the 8dot3 name of a file, it does works when I paste the line in the Command Prompt but not when I run it from a batch file. Result when pasted : D:\tmp>cmd /e:on /c for %A in ...
-1
votes
1answer
12 views

sejda-console.bat passing parameters with spaces

hi i am using sejda console.bat and I am running into difficulties with parameters when there is a space involved. I am trying to use the simplesplit feature and I am calling the console as follows: ...
0
votes
2answers
3k views

Checking Remaining Harddisk Space in a DOS Batch Script. IF Condition not working

I'd like to have a notification that informs me when my hard disk space is getting low. I'm running Windows 7 Professional and I think a quick batch file could handle this. I'll schedule it to run ...
0
votes
2answers
30 views

Batch file - date variables and moving files with variable date file name from one folder to another

I need some assistance, please. I'm trying to create a batch file to move files from one folder to another. The file name will have variable yyyy-mm format plus additional data before or after the ...
0
votes
2answers
32 views

how do i compare two files using a batch script with a count of differences

I have two files file1 and file2. File1 ( which is the reference file) contains ABC DEF ABCD XYZ DEFG File2 contains ABC DEF If "File2" has more entries as compared to "File1" then display the ...
0
votes
2answers
38 views

Cannot load 32-bit SWT libraries on 64-bit JVM

sorry to disturb you ~~I met the same issue My computer is win7 64 bit, and jdk is 1.7.0.21,jvm is 1.6.. and 64 bit I wanna to run SWT application and export as runnable jar file.When I run the ...
0
votes
1answer
9 views

In batch file loop, applying JSLint to files, excluding some extensions

I am trying to create a batch file that verifies all the javascripts except the ones with .min.js in their extension. I am seeing that my_file only gets value of one file. It is always the same, ...
0
votes
1answer
16 views

batch file to handle month 08 as not valid octal

if /i %dd% LSS 10 set dd=%date:~8,1% set /A dd=%dd% - 1 set /A mm=%mm% + 0 The above piece of script takes system date and when the month is August and date is 1st it is encountered with error. ...
0
votes
1answer
16 views

batch file will not set permissions and get input from command line

The code below is to run through a folder which contains several files (ending "*_perms.txt") which defines the permissions of directories, based on that user name. Ideally the code will at some point ...
0
votes
2answers
27 views

extract value of word (being passed as parameter) from a file using batch file

I have a file where i store the output of tnsping this file will contain text as: TNS Ping Utility for 32-bit Windows: Version 10.1.0.4.2 - Production on 12-AUG-2013 11:28:33 Copyright (c) 1997, ...
1
vote
1answer
31 views

“echo” in .bat is quite slow

I wrote a little .bat file, hoping to be able to create a matrix-like (0 and 1) output. The problem is, that it is pretty slow, it takes nearly two seconds to fill one line. Is there something I can ...
0
votes
1answer
29 views

Spring batch split flow supported in the Grails plugin?

I am using Spring batch plugin for Grails (spring-batch-1.0.RC2). So far is working properly but I want to split the flow to execute ... is that supported? This is the code I am trying to execute... ...
0
votes
0answers
253 views

Best way to run batch file at boot time under Windows 7?

We have a requirement for an application running on Windows 7 machines that allow updates to be pushed out to them from a legacy system running on the server side. There is a well-established ...
0
votes
0answers
9 views

How to use keyboard shortcut keys throug batche file

I want to write a batch file that should open a file.txt and should do ALT + S and ALT + F and exit the file automatically . Thanks in advance for your quick response :)
0
votes
1answer
13 views

find and replace in in multiple files

I am using IIS7 and have multiple folders (individual web pages based on HTML5) published. every folder has a file named "cache.manifest" and I want to find a specific string (javascript file name) ...
0
votes
1answer
13 views

Getiing error message 'Failed Installing JBAS50SVC' whle running service.bat file in Windows 7

I need to run Jboss 7 as service. Followed these steps :- Copied my Jboss to C:\Program Files <86> Downloaded Jboss-native-2.0.10-windows-x64-ssl and copied the contenst of bin catalog to ...
0
votes
2answers
24 views

Looping using FOR in batch (*.bat) / CMD

i have batch script (*.bat). i use windows 7. i want to learn how to use FOR syntax to looping echo off :bulan cls echo. echo. set /P start= Input start : %=% set /P end= Input End : %=% set ...
0
votes
3answers
45 views

Batch File to Move Files with Same Beginning String to a Folder with That String Name

So I have a set of files that look something like this: Bob - Test Name - 1.txt Bob - Test Name - 2.txt Bob - Test Name - 3.txt Sam- Foo Name - 1.txt Sam- Foo Name - 2.txt Sam- Foo Name - 3.txt Phil ...
35
votes
7answers
10k views

How does the Windows Command Interpreter (CMD.EXE) parse scripts?

I ran into ss64.com which provides good help regarding how to write batch scripts that the Windows Command Interpreter will run. However, I have been unable to find a good explanation of the grammar ...
0
votes
1answer
32 views

Need batch-file to move 1 random file

I'm looking for a batch script that can move 1 random image file from one folder to another, so I'm thinking it would be a wildcard for name and extension since the images could be different file ...
1
vote
1answer
28 views

Padding numbers in filename with 0's

I have some files whose names are like Image 1.jpg Image 2.jpg Image 10.jpg Image 11.jpg Image 20.jpg They are numbered in the exact order that I want them to appear, but windows takes them in this ...
1
vote
1answer
68 views

create a batch file to open firefox, then run a macro (wait for it to finish) then run another macro

I am trying to: (1) load Firefox (2) run Iopus Imacro (.iim) - wait for this to finish, then (3) run the next macro. So far I have tried start /wait - call and as many other suggestions as I could ...
5
votes
4answers
3k views

Permanently altering a user's %PATH% environment variable via batch or Python

I've been having difficulty with getting my users to set the PATH environment variable manually, I'm looking for a way to do this automatically. A batch file would be preferable, since that would ...
0
votes
2answers
136 views

How to use setx command in a windows batch file

I am trying to create a windows batch file to automatically set the environment variable to use python 2.4 or python 3.3. Both python 2.4 and 3.3 are installed on my system. Here is my code: ::To ...
17
votes
4answers
22k views

How to persistently set a variable in Windows 7 from a batch file?

I am trying to set the PATH environment variable in windows 7 using a bat-file; however it does not seem to work. I am using this windows command: set PATH=%cd%;%path% pause However it only ...
0
votes
3answers
35 views

Unflattening a directory structure based on filenames

This is the inverse of the "flatten" operation described in this question: Flattening a directory I would like a batch script that will go through each file in a "flattened" directory and put them ...
0
votes
2answers
30 views

tracert command is not working but able to access the same site through browsers [on hold]

tracert [site name] is not working in cmd prompt. But the same site has been working in all of my browsers . Please find below output of command. I need to use this command in my batch file but there ...
1
vote
4answers
6k views

call java class in batch file

i want to call the java class in batch file. how can i call. can tell me any commands which call the class file Thanks Krishna
0
votes
1answer
30 views

Almost working PDF merge batch file, just a little help needed

I'm using this batch file to merge PDF files, and it's working, but only with files which don't have spaces in their names. For a 'test file.pdf' it gives an error ~ can't find file test and file.pdf. ...
0
votes
1answer
33 views

task scheduler on Windows Server 2012 just runs by selecting “Run” (.bat)

I want to run a .bat file from my windows server 2012 in a task schedule. After i setted up everything, the task schedule doesn't run byself. it works if i rightclick the task and klick "Run", so the ...
0
votes
2answers
25 views

Batch - Search text file for specified string and if found set variable to 1

I can't seem to find a answer for this, all the questions seem focused on setting whats found in the text file as the variable. I just want to see if the string I have provided exists anywhere in the ...

1 2 3 4 5 225