Computing.Net > Forums > Windows 95/98 > Login Script Fun

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.

Login Script Fun

Reply to Message Icon

Name: Doug
Date: April 23, 2002 at 08:03:03 Pacific
Comment:

I have created a login script for my 95/98 users so that they can map drives to their network resources. Problem is....I get the Please wait while your login script executes text box...and it won't close. Have to hit cancel to close. Script has following lines...
net use h: \\servername\share
goto end
:end
exit
I have also tried going to the Program tab and hitting close on exit in the properties of the batch file.
Question is this...has anyone else had this problem and what did you try to close your batch file.



Sponsored Link
Ads by Google

Response Number 1
Name: tom
Date: April 23, 2002 at 08:39:01 Pacific
Reply:

Not sure this is the answer - but - look in
the properties of the batch file and under
"Misc" try taking the checkmark out of
"warn if still active"

Tom


0

Response Number 2
Name: Geek
Date: April 23, 2002 at 09:10:52 Pacific
Reply:

Try this:

@echo off
net use h: /delete
net use h: \\server\share
cls
exit

The @echo off will prevent anything from being shown in the dos window. The first net use will disconnect any drive that the user might have mapped. Then the second net use will remap the drive you want. Finally the cls and exit will clear and close the dos window. It all should happen very quickely, unless you have a very slow network.


0

Response Number 3
Name: Dave C
Date: April 23, 2002 at 16:18:52 Pacific
Reply:

I agree with Geek, except for the echo and the cls.. I like to see it up there if the logon script fails to close, I might be able to find out why.

Try just getting rid of the goto end / :end part, you don't need it in there.

-Dave C


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


CD Burning Help dwyco



Post Locked

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


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: Login Script Fun

polices and login scripts www.computing.net/answers/windows-95/polices-and-login-scripts/46414.html

WINDOWS98 and Login Scripts www.computing.net/answers/windows-95/windows98-and-login-scripts/115703.html

Login Script to install network printer www.computing.net/answers/windows-95/login-script-to-install-network-printer-/78633.html