Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Standard logon script running from a MS Server 2003 server on a Windows Xp machine. Here's the script (altered for security reasons):
*****
net use u: "\\ServerA\network shares"
"C:\Program Files\Internet Explorer\iexplore.exe" "http:\\ServerB\project"
*****
The web interface in "project" opens successfully in IE7. However, after the page opens, the batch file hangs and does not close automatically. If the referenced web page is closed then the batch file will finish and close itself.
How do I get the batch file to close automatically without closing the webpage?Thanks!

You need to use the START command. Try the following with and without start removed :)
-----
REM Sample BAT file
start notepad.exe
echo "Still going!"
start calc.exe
-----

*****
net use u: "\\ServerA\network shares"
Start "" "C:\Program Files\Internet Explorer\iexplore.exe" "http:\\ServerB\project"
*****BEWARE: don't miss the "" after Start!

Ugh this is what I hate about computer software. Lack of heuristics in command processing.
what the heck does the first "" after Start do?
Compaq Presario SR1720NX Desktop Computer
AT&T SBC Yahoo DSL Home
Linksys Router/2 computers

The double quotes ("") after the Start op-code setup an empty title for the running window, otherwise in presence of a path with embedded blanks to be embraced by " the path itself is interpreted as the window's title.
To know more and get the full on-line tutorial about the syntax of the Start command type Start /? at prompt.

![]() |
dvd rw far too long to bu...
|
Installing Windows XP Hom...
|

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