October 6, 200619 yr 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
October 6, 200619 yr There's nothing wrong with the batch file itself, so it must have something to do with the way you call it.
October 6, 200619 yr I bet it's named start.bat or start.cmd which would cause it to call itself over and over.
October 6, 200619 yr Author 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, 200619 yr by goosh
October 6, 200619 yr what is the name of yout CMD file?Yes! I always avoid naming my CMD/BAT with a name reserved for DOS commands.
October 10, 200619 yr Use proper syntax in your batch file.If you usedstart mspaint.exeinstead ofstart mspaintThis could have been avoided.
Create an account or sign in to comment