1.

Solve : Running prgm with batch?

Answer»

I would like to make my 5 programs to run at the same time as soon as i click my batch file to execute it. Does anyone know what command to use for this it to execute?

ThanksI think it's "Run C:\path\filename.exe"Hmm... I did this

Run C:\1\pub-revemu.exe
Run C:\2\pub-revemu.exe
Run C:\3\pub-revemu.exe
Run C:\4\pub-revemu.exe
Run C:\5\pub-revemu.exe
Run C:\6\pub-revemu.exe

and saved as NAME.bat ...... but a window opens and closes and nothing happens... whats wrong?Is that path correct? You have an actual directory on your C: called 1 etc? Try taking out the run.yep i got a folder in C:\1 ...WELL the path is correct. what else might be the PROBELM?Try START instead of RUN

Start C:\1\pub-revemu.exe
Start C:\2\pub-revemu.exe
Start C:\3\pub-revemu.exe
Start C:\4\pub-revemu.exe
Start C:\5\pub-revemu.exe
Start C:\6\pub-revemu.exeIf u use winxp, or maybe 2k, im not SURE about it....but in xp u only need to write the path with ""It would not be possible... well of course you can't run programs all at the same time... it should be done one at a time... but the command is just simply writing the path... hehehehe...

c:\1\pub-revemu.exe

just make sure that the file is present...

why make things complicated???


try making this in notepad then saving it as a bat (just add .bat at the end of the file name)...

@ECHO OFF

start C:\1.....
start C:\2.....
start C:\3.....
....
.....

obviously using the whole PATHNAME in thereSyntax, the programs aren't STARTED at the same time. Processors (generally speaking) can only deal with one task at a time, but nowadays they do so at such a speed that it merely appears to be simultanious.

What happens in a batch file is that the first line is executed, then the second, then the third... one at a time. It just happens quickly.Does the first program start to run? The batch file should start the first program and then sit idle until that program ends, which returns to the batch file to execute the next command. It will not execute all five programs at once. The syntax is simply c:\directory\program name
or whatever drive,directory,program or batch you want to run.



Discussion

No Comment Found