Re: .Bat file code error
What about cmd at the end of the file?
Update: A more decent solution to your problem:
How are you executing your bat file? Just double clicking on a shortcut that you created? In this case, create a shortcut to your .bat file as cmd /K mybatfile.bat
The /K option will keep the command prompt running.
If you are using the Start -> Run option, instead of typing in your .bat file name directly in the Run box, type cmd /K mybatfile
And what about my other 2 comments? - (a) The c:\Program files will not work. You will have to enclose the string in double quotes; (b) You can use Environment settings to set the Java path. No need to write a .bat code for the same.
- Bandu.
Last edited by Bandu; 23-09-2008 at 07:36 PM.
Reason: Automerged Doublepost
|