Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Running prgm with batch  (Read 6272 times)

0 Members and 1 Guest are viewing this topic.

kaneda

  • Guest
Running prgm with batch
« on: June 03, 2004, 04:52:43 PM »
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?

Thanks

Joleen

  • Guest
Re: Running prgm with batch
« Reply #1 on: June 04, 2004, 05:10:40 AM »
I think it's "Run C:\path\filename.exe"

J Kaneda

  • Guest
Re: Running prgm with batch
« Reply #2 on: June 04, 2004, 06:29:31 AM »
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?

Joleen

  • Guest
Re: Running prgm with batch
« Reply #3 on: June 04, 2004, 06:47:09 AM »
Is that path correct?  You have an actual directory on your C: called 1 etc?  Try taking out the run.

J Kaneda

  • Guest
Re: Running prgm with batch
« Reply #4 on: June 04, 2004, 07:09:27 AM »
yep i got a folder in C:\1 ...well the path is correct. what else might be the probelM?

Rob

  • Guest
Re: Running prgm with batch
« Reply #5 on: June 08, 2004, 02:34:08 PM »
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.exe

trey__

  • Guest
Re: Running prgm with batch
« Reply #6 on: June 18, 2004, 07:12:57 AM »
If u use winxp, or maybe 2k, im not sure about it....but in xp u only need to write the path with ""

syntax_21

  • Guest
Re: Running prgm with batch
« Reply #7 on: July 17, 2004, 09:16:50 PM »
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???



|-|4[|<3R

  • Guest
Re: Running prgm with batch
« Reply #8 on: November 18, 2004, 01:52:47 PM »
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 there

Corrosive

  • Guest
Re: Running prgm with batch
« Reply #9 on: November 19, 2004, 11:28:21 AM »
Syntax, 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.

Raskal

  • Guest
Re: Running prgm with batch
« Reply #10 on: February 09, 2005, 09:28:14 PM »
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.