User Tools

Site Tools


faq:fixing_drive_disconnects_with_a_login_script

This is an old revision of the document!


Fixing Drive Disconnects with a Login Script

A disconnected drive to a server PC that contains System Five data will prompt the user to “Link a new workstation” when attempting to login to System Five from a client. If you ever experience drive disconnects when booting up a workstation PC, the following login script will help fix the problem:

@ECHO OFF CLS ECHO Logging onto network… please wait… ECHO.

:NOTREADY

REM Check that the workstation service has finished loading and is ready.

REM Loop until the service is ready.

NET STATISTICS WORKSTATION |FIND /I “completed successfully”>NUL

IF ERRORLEVEL 1 GOTO NOTREADY

:CANPING

REM Check that we can ping the server.

REM Exit if no reply is received.

PING SERVER2003 |FIND /I “reply from”>NUL

IF ERRORLEVEL 1 GOTO END

:ATTACH

NET USE W: \\SERVER2003\WINDWARD windward /USER:windward /PERSISTENT:NO

:END

Save the above text in a file called login.bat and place it in the c:\windows folder on each PC. Then add it to the startup folder on the workstation so that it is executed when the PC boots up.

faq/fixing_drive_disconnects_with_a_login_script.1216657662.txt.gz · Last modified: 2008/07/21 09:27 (16 years ago) by bob