homepage Welcome to WebmasterWorld Guest from 54.163.72.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Microsoft / Microsoft Windows OS (XP/NT/Vista/Windows 7/8/9/10)
Forum Library, Charter, Moderators: bill

Microsoft Windows OS (XP/NT/Vista/Windows 7/8/9/10) Forum

    
launch multiple files at once with dos batch command
launch multiple files at once with dos batch command
drooh




msg:3712665
 4:14 am on Aug 1, 2008 (gmt 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.

 

kaled




msg:3712762
 9:32 am on Aug 1, 2008 (gmt 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.

drooh




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

thanks works great!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft Windows OS (XP/NT/Vista/Windows 7/8/9/10)
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved