Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
batch file starting another batch file
Name: sean00197 Date: August 2, 2009 at 02:18:16 Pacific OS: Microsoft Windows Vista Home Premium CPU/Ram: 1.6 GHz / 1525 MB Product: Ibm / 1866cxu Subcategory: Software Problems
Comment:
I am writing a batch file and so far all is well, but now i want to start another batch file. I tried the call command but doesnt work because the batch has to be run in a new window. I want my batch to START another batch file in a new window Thank you for any help
Name: IVO Date: August 2, 2009 at 03:03:35 Pacific
Reply:
start "" MyBatch
The above command runs MyBatch in a new window and continues the execution of the original batch; to pause the script until MyBatch ends add the /W switch after "".
0
Response Number 2
Name: sean00197 Date: August 2, 2009 at 15:14:14 Pacific
Reply:
Hi thank you so much for responding but could u give me an example im trying this string out and cant seem to get it to work.... is it supposed to look like this <start "destination of .bat" .bat name> ??? thank you
0
Response Number 3
Name: sean00197 Date: August 2, 2009 at 15:38:40 Pacific
Reply:
okay i got it to run in a seperate window but heres the problem is that the bat file that im running from my bat is java based so it opens it up and gives me this Exception in thread "main" java.lang.NoClassDefFoundError: EGUI Caused by: java.lang.ClassNotFoundException: EGUI at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Could not find the main class: EGUI. Program will exit. running websterscape client. The system cannot find the batch label specified - begin
0
Response Number 4
Name: sean00197 Date: August 8, 2009 at 14:02:06 Pacific
Reply:
okay figured out what to do ... you have to put the batch file in the folder and make a shortcut to it
Summary: I have two machines. One is Windows XP. The other is Windows 98. On the XP machine, I have a batch file that copies some folders and places them on a zip drive attached to the XP machine. On the 9...
Summary: Thanks Sandman. That worked. I also got an email from Ivo with another solution that worked: start "" "C:\Program Files\Sony Handheld\HOTSYNC.EXE" Note that those are empty double quotes after start. ...
Summary: You need to use the START command. Try the following with and without start removed :) ----- REM Sample BAT file start notepad.exe echo "Still going!" start calc.exe ----- http://www.microsoft.com/re...