There is a VB6 application. It can be run with command line parameters to create some report in a text file.
The problem is that when started from a batch file, application returns control immediately, so the following commands start executing. I need these following commands to wait until the VB6 app finishes its work.
How to achieve ...
I need to delete all folders in "tomin" folder, which name contains terminates with the ".delme" string.
The deletion need to be done recurively: I mean on all directory and SUB directories.
I though to do this:
FOR /R tomin %%X IN (*.delme) DO (RD /S /Q "%%X")
but it does not work, I think /R ignores wildcards.
Before asking this q...
I want to run a Firebird stored procedure from a batch file or similar on a desktop. The stored procedure contains insert statements and update statements with if possible parameters that I would like to pass.
Any ideas or other suggestions would be appreciated.
...
I'm having some difficulties building up some cross-platform Makefiles, and I'm getting errors from processes called by mingw32-make that don't make the problem clear. I've tried calling mingw32-make with "-d", and I get a lot of debug output, but the actual program invocations are hidden in temporary batch files that are immediately del...
Hi ,
I need a batch file which deletes all the folders that were created between a specific date.The dates should be user input. That is created date from and till provided by user input.
Thanks
Nis
...
Hi,
I found that a lot of Java programs in Windows use .bat batch file as program launcher. It looks weird if compared with other programs which use .exe executable file.
Why can't those Java programs use .exe file? Is that a limitation of Java program?
Thanks.
...
I have a problem with cruisecontrol where an ant scripts executes a bat file that doesn't give me the prompt back. As a result, the project in cruisecontrol keeps on bulding forever until I restart cruisecontrol. How can I resolve this?
It's a startup.bat from wowza (Streaming Server) that I'm executing:
@echo off
call setenv.bat
if ...
Hi,
is it possible to return the errorlevel also if I pipe the output of a script into a logfile:
test1.bat:
call test2.bat 2>&1 | tee log.txt
echo ERRORLEVEL: %ERRORLEVEL%
test2.bat:
exit /B 1
Output when calling test1.bat:
ERRORLEVEL: 0
The errorlevel is always 0.
The problem is, I want to call another script inside my ...
In reference to my previous question regarding making the .EXE file for demonstration
http://stackoverflow.com/questions/2862067/how-to-make-exe-for-demonstration-of-a-android-software-built-in-eclipse
Can anyone explain creating batch file to launch the emulator?
...
I'm trying to read a ini file with this format:
[SectionName]
total=4
[AnotherSectionName]
total=7
[OtherSectionName]
total=12
Basically I want to echo out certain values from the ini file(eg. the total under OtherSectionName followed by the total from AnotherSectionName).
...
I want to write a simple batch file where i want to setup a environment variable based on the machine architecture. It is as below:
set ARCH=%PROCESSOR_ARCHITECTURE%
echo %ARCH%
if %ARCH%==x86 (
set JAVA_ROOT=C:\Progra~1\Java\j2re1.4.2_13
) else (
set JAVA_ROOT=C:\Progra~2\Java\j2re1.4.2_13
)
echo JAVA_ROOT is %JAVA_ROOT%
On 64-bi...
I am using batch file to run certain operation in my application. The command I am using does not take password as a parameter instead it prompts for it while running. This is coming in the way of automating this script. I would like to know how I can take password as a parameter and provide to the application when it prompts.
...
I'm using a batch file to stop a Windows service. I'm using the sc command, but I'm open to other ideas, given the question below. The problem is that the batch file proceeds while the service is stopping (the stop argument to sc seems only to request the stop -- it doesn't wait for the stop).
How can I modify the batch file to not pr...
i have a litle project for which i would like to remove all files outside of and not needed by the c:\windows operating system. therefore i need to create a list of what i want to keep i.e. boot.ini c:\windows etc and then delete everything else. i have seen examples using forFile, but i can be sure that extension will be on the machine....
Hi,
I have the following problem:
I have created a batch script which calls itself in there (for being able to write a log in parallel). In the script I start another process (like start startServer.bat) which starts up a java process and keeps opened up all the time.
In my original script I wait 30 seconds, check if the process is r...
I am trying to write a script that I can give to user to have it automatically zip certain files of theirs and then load them onto an ftp site.
Anyone know where I could find information on writing a batch file for auto-zipping files using only what is available to a user running windows? I have been looking for quite a bit but I am st...
I run a bat file to clean up and sometimes it takes a few seconds for my app to full close. In it i delete a database. Instead of waiting or running it multiple times i would like the bat file to continue its attempts until it has a success. How can i do that?
...
I have a cleanup scrip in a bat file and i wanted to do the below but the problem is i get a mysql error saying unknown database and showing it as testdb. I guess i can change my code testdb but i would like to know.
How do i have windows cmd use case sensitivity so i can execute queries properly instead of always in lower case?
mysql....
i am calling a batch file for xcopy. i have the path of the file to b copied in variable a. my code is:
dim shell,z
z="for.bat " & a & " " & b & " " & c
set shell=createobject("wscript.shell")
shell.Run z, 1, true
where for.bat is:
for %%f in (%1,%2,%3) do xcopy %%f D:\shipment\ /e
when 'a' has small path like D:\fle...
I searched the site but didn't see anything quite matching what I was looking for. I created a stand alone application that uses a web service I created. To run the client I use:
c:/scriptsdirecotry> "run-client.bat" param1 param2 param3 param4
how would I go about coding this in python or F#. seems like it should be pretty simple but ...