faq:fixing_drive_disconnects_with_a_login_script
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
faq:fixing_drive_disconnects_with_a_login_script [2008/12/03 14:55 (16 years ago)] – bob | faq:fixing_drive_disconnects_with_a_login_script [2009/02/11 09:02 (15 years ago)] (current) – bob | ||
---|---|---|---|
Line 6: | Line 6: | ||
A disconnected drive to a server PC that contains System Five data will prompt the user to "Link a new workstation" | A disconnected drive to a server PC that contains System Five data will prompt the user to "Link a new workstation" | ||
+ | < | ||
@ECHO OFF | @ECHO OFF | ||
- | |||
CLS | CLS | ||
- | |||
ECHO Logging onto network please wait | ECHO Logging onto network please wait | ||
- | |||
ECHO | ECHO | ||
:NOTREADY | :NOTREADY | ||
Line 27: | Line 24: | ||
NET USE W: \\SERVER2003\WINDWARD / | NET USE W: \\SERVER2003\WINDWARD / | ||
:END | :END | ||
+ | </ | ||
The above script first verifies that the workstation service is started and that the server can be pinged from the workstation prior to attempting to map the drive. The server in this case is named **SERVER2003** and the share is named **WINDWARD**. Also, a user named **windward** with the password **windward** has been created on the server and drive W: is being mapped as that user. 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. **(See Figure 1)** | The above script first verifies that the workstation service is started and that the server can be pinged from the workstation prior to attempting to map the drive. The server in this case is named **SERVER2003** and the share is named **WINDWARD**. Also, a user named **windward** with the password **windward** has been created on the server and drive W: is being mapped as that user. 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. **(See Figure 1)** | ||
Line 38: | Line 35: | ||
{{faq: | {{faq: | ||
+ | |||
+ | **Figure 4: Complete Script** | ||
+ | |||
+ | {{faq: | ||
faq/fixing_drive_disconnects_with_a_login_script.1228344914.txt.gz · Last modified: 2008/12/03 14:55 (16 years ago) by bob