goosh Posted October 6, 2006 Share Posted October 6, 2006 I am trying to learn how to create an auto-installation cd and at the 'batch file' stage of the intermediate section this is a sample batch file:@echo offtitle Batch File Testingecho Hello Worldecho.echo Starting MS Paintstart mspaintecho.echo Starting Wordpadstart Wordpadecho.pauseexitThe problem is when I run it the two programs just keep opening over and over again and I have to restart the computer because I can't stop them.Thanks for any advice Link to comment Share on other sites More sharing options...
IcemanND Posted October 6, 2006 Share Posted October 6, 2006 what is the name of yout CMD file? Link to comment Share on other sites More sharing options...
Ctrl-X Posted October 6, 2006 Share Posted October 6, 2006 There's nothing wrong with the batch file itself, so it must have something to do with the way you call it. Link to comment Share on other sites More sharing options...
nakira Posted October 6, 2006 Share Posted October 6, 2006 I bet it's named start.bat or start.cmd which would cause it to call itself over and over. Link to comment Share on other sites More sharing options...
goosh Posted October 6, 2006 Author Share Posted October 6, 2006 (edited) Oh no I'm so silly! Ha and I thought my CPU was going to explode as well I had named it mspaint.cmd and I guess that must've just kept opening it because it was called that. I changed it to TestBatch.cmd and everything is cool.Thanks very much for your help Edited October 6, 2006 by goosh Link to comment Share on other sites More sharing options...
mazin Posted October 6, 2006 Share Posted October 6, 2006 what is the name of yout CMD file?Yes! I always avoid naming my CMD/BAT with a name reserved for DOS commands. Link to comment Share on other sites More sharing options...
Gee Posted October 10, 2006 Share Posted October 10, 2006 Use proper syntax in your batch file.If you usedstart mspaint.exeinstead ofstart mspaintThis could have been avoided. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now