Welcome to WebmasterWorld Guest from 54.145.55.135

Forum Moderators: bill

Message Too Old, No Replies

launch multiple files at once with dos batch command

launch multiple files at once with dos batch command

     
4:14 am on Aug 1, 2008 (gmt 0)

Preferred Member

10+ Year Member

joined:June 19, 2006
posts:476
votes: 0


contents of run.bat
notepad "hello1.txt"
notepad "hello2.txt"

Ok, very simple question here.

I want to click on run.bat and have it open both of these files at once. Currently when i click the bat file it pulls up the 1st txt file and then i have to close it before the other txt file pops up.

9:32 am on Aug 1, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 2, 2003
posts:3710
votes: 0


The problem is that when a new process is created from a batch file, it deliberately waits for the process to terminate so that it can collect the exit code. Try...

START hello1.txt
START hello2.txt

You may also find the following useful...
[computerhope.com...]

Kaled.

4:24 am on Aug 4, 2008 (gmt 0)

Preferred Member

10+ Year Member

joined:June 19, 2006
posts:476
votes: 0


thanks works great!