Welcome to WebmasterWorld Guest from 50.16.78.128

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)

5+ Year Member



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)

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



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)

5+ Year Member



thanks works great!