User Tools

Site Tools


faq:fixing_drive_disconnects_with_a_login_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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)] bobfaq:fixing_drive_disconnects_with_a_login_script [2009/02/11 09:01 (15 years ago)] bob
Line 7: Line 7:
  
 <code> <code>
- 
 @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 "completed successfully">NUL NET STATISTICS WORKSTATION |FIND /I "completed successfully">NUL
- 
 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">NUL PING SERVER2003 |FIND /I "reply from">NUL
- 
 IF ERRORLEVEL 1 GOTO END IF ERRORLEVEL 1 GOTO END
- 
 :ATTACH :ATTACH
- 
 NET USE W: \\SERVER2003\WINDWARD /user:windward windward /PERSISTENT:NO NET USE W: \\SERVER2003\WINDWARD /user:windward windward /PERSISTENT:NO
- 
 :END :END
- 
- 
 </CODE> </CODE>
  
faq/fixing_drive_disconnects_with_a_login_script.txt · Last modified: 2009/02/11 09:02 (15 years ago) by bob