Computing.Net > Forums > Disk Operating System > Launching browser from batch file

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

Reply to Message Icon

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?

Thanks,
Mike



Sponsored Link
Ads by Google

Response Number 1
Name: mr o
Date: April 18, 2001 at 01:11:10 Pacific
Reply:

are you calling the browser or just executing it straight as a batch command?


0

Response Number 2
Name: jolyhils
Date: April 18, 2001 at 04:54:37 Pacific
Reply:

Maybe the file that you start is not the actual browser, but only starts up the browser.


0

Response Number 3
Name: Michael
Date: April 18, 2001 at 08:17:07 Pacific
Reply:

Also another thing you can try is the start command under DOS.

Do a
start /?
under a DOS prompt to learn about it.

Hope that helps,
-Michael


0

Response Number 4
Name: Mike Smith
Date: April 18, 2001 at 09:48:14 Pacific
Reply:

Thanks for the replies. Below is section from the
start.bat file. I assume it launches the actual
Netscape browser.

.
.
.
cmd /c "c:\program files\netscape\communicator\program\netscape.exe" http://...
.
.
.

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

Related Posts

See More



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.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Launching browser from batch file

MS Access query from batch file www.computing.net/answers/dos/ms-access-query-from-batch-file/2567.html

edit autoexec from batch file www.computing.net/answers/dos/edit-autoexec-from-batch-file/6415.html

Starting IE5 from Batch file www.computing.net/answers/dos/starting-ie5-from-batch-file/4779.html