faq:fixing_drive_disconnects_with_a_login_script
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
faq:fixing_drive_disconnects_with_a_login_script [2009/02/11 09:00 (15 years ago)] – bob | faq:fixing_drive_disconnects_with_a_login_script [2009/02/11 09:01 (15 years ago)] – bob | ||
---|---|---|---|
Line 7: | Line 7: | ||
< | < | ||
- | |||
@ECHO OFF | @ECHO OFF | ||
- | |||
CLS | CLS | ||
- | |||
ECHO Logging onto network please wait | ECHO Logging onto network please wait | ||
- | |||
ECHO | ECHO | ||
- | |||
:NOTREADY | :NOTREADY | ||
- | |||
REM Check that the workstation service has finished loading and is ready. | REM Check that the workstation service has finished loading and is ready. | ||
- | |||
REM Loop until the service is ready. | REM Loop until the service is ready. | ||
- | |||
NET STATISTICS WORKSTATION |FIND /I " | NET STATISTICS WORKSTATION |FIND /I " | ||
- | |||
IF ERRORLEVEL 1 GOTO NOTREADY | IF ERRORLEVEL 1 GOTO NOTREADY | ||
- | |||
:CANPING | :CANPING | ||
- | |||
REM Check that we can ping the server. | REM Check that we can ping the server. | ||
- | |||
REM Exit if no reply is received. | REM Exit if no reply is received. | ||
- | |||
PING SERVER2003 |FIND /I "reply from"> | PING SERVER2003 |FIND /I "reply from"> | ||
- | |||
IF ERRORLEVEL 1 GOTO END | IF ERRORLEVEL 1 GOTO END | ||
- | |||
:ATTACH | :ATTACH | ||
- | |||
NET USE W: \\SERVER2003\WINDWARD / | NET USE W: \\SERVER2003\WINDWARD / | ||
- | |||
:END | :END | ||
- | |||
- | |||
</ | </ | ||
faq/fixing_drive_disconnects_with_a_login_script.txt · Last modified: 2009/02/11 09:02 (15 years ago) by bob