Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Launching browser from batch file
Name: Mike Smith Date: April 17, 2001 at 17:05:46 Pacific
Comment:
Near the end of a .bat file, I am launching a browser. When the browser exits, the batch file should stop some processes required for the browser. The problem is that control is returned to the batch file immediately after the browser is started. I noticed that a test launch from the dos command prompt also return to the command prompt after the browser is launched. When a batch file launches other executables, control is not returned to the batch process until the executable exits.
Is there some way to make the batch process wait until the browser (Netscape or IE) exits?
To test the cmd standalone, I opened a DOS command prompt window. After entering the command, NS opens, but the prompt is displayed, which verifies why the bat file continues after launching the command. The bat file needs to wait for NS to exit before proceeding.
Thanks, Mike
0
Response Number 5
Name: Nodoz Date: April 19, 2001 at 16:12:54 Pacific
Reply:
Aaah!, Windows NT...
The color of this discussion changes before my eyes.
0
Response Number 6
Name: Mike Smith Date: April 26, 2001 at 15:39:28 Pacific
Reply:
Turns out the problem is that Netscape was getting launched as a child of a parent NS session launched earlier, and they use the same thread. That is why a fatal error in one session closes ALL NS sessions. Don't know of an arg or setting in NS to change this behavior, which appears to be consistent across NT, PC, W98 and W2000.
Summary: I'm trying to query an Access database from a batch file. I would like the result to echo to the screen. I'm currently doing this to a SQL database with the 'isql' command. Basically i need a command...
Summary: I have Win95 machines that won't boot after installing a certain software because the installation places a PATH command in the autoexec without referencing the previous paths. Can anyone tell me wha...
Summary: Hi How could I start the file c:\start.htm from within a batch file. The above works fine on NT but I am running WIN98 and I believe I need some more command line options ? Help appreciated...