Computing.Net > Forums > Windows XP > Batch File Hangs

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.

Batch File Hangs

Reply to Message Icon

Name: AccessFreak
Date: February 8, 2007 at 10:47:29 Pacific
OS: Windows XP
CPU/Ram: P4/1024
Product: HP/Workstation
Comment:

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!




Sponsored Link
Ads by Google

Response Number 1
Name: CyberSlug
Date: February 8, 2007 at 11:20:50 Pacific
Reply:

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
-----

http://www.microsoft.com/resources/...


0

Response Number 2
Name: IVO
Date: February 8, 2007 at 13:35:02 Pacific
Reply:

*****
net use u: "\\ServerA\network shares"
Start "" "C:\Program Files\Internet Explorer\iexplore.exe" "http:\\ServerB\project"
*****

BEWARE: don't miss the "" after Start!


0

Response Number 3
Name: Beachcoffee
Date: February 8, 2007 at 14:31:30 Pacific
Reply:

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


0

Response Number 4
Name: IVO
Date: February 9, 2007 at 04:47:53 Pacific
Reply:

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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


dvd rw far too long to bu... Installing Windows XP Hom...



Post Locked

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


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Batch File Hangs

Batch file > auto close cmd window www.computing.net/answers/windows-xp/batch-file-auto-close-cmd-window/98455.html

Batch file www.computing.net/answers/windows-xp/batch-file/180885.html

Auto folder Batch file www.computing.net/answers/windows-xp/auto-folder-batch-file/145055.html