rahab
05-23-2002, 06:16 PM
Is is possible to use the GOTO command within a VBScript logon script?
Specifically I would like to use an IF Then statement to check for username and when the criteria matches have it execute a special portion of the script.
Example:
If WSHNetwork.Username = "Admin"
Then Goto Admin
Else Goto User
EndIf
:Admin
MapDrive "J:","\\server\c$"
:User
MapDrive "J:","\\server\share"
If this is possible please post syntax examples.
Thanks!
Specifically I would like to use an IF Then statement to check for username and when the criteria matches have it execute a special portion of the script.
Example:
If WSHNetwork.Username = "Admin"
Then Goto Admin
Else Goto User
EndIf
:Admin
MapDrive "J:","\\server\c$"
:User
MapDrive "J:","\\server\share"
If this is possible please post syntax examples.
Thanks!