Rockstar101
MIS
hello all,
I am tring to figure out the best way to dynamically map drives to my machine based on which remote server I'm connected to.
Example:
*I'm at my desk. I would like to create a logon script to automatically create a mapped drive "Y:" for me to the local servers shared folder.
*If I remote to server X. I would like to have the logon script automatically replace my currently mapped Y: drive and replace it with a mapped drive on the remote server using the same Letter Y:
*When I log out the remote server X. The mapped drive should revert back to a local server mapped drive I had before I logged into the remote server.
would this work or is there a better way...thank you!
IF LOGONSERVER=local server GOTO A
GOTO B
:A
NET USE Y \\localserver\sharedFoler
GOTO END
:B
NET USE Y \\%LOGONSERVER%\SharedFolder
GOTO END
:END
Thanks again all help is appreciated!!!
I am tring to figure out the best way to dynamically map drives to my machine based on which remote server I'm connected to.
Example:
*I'm at my desk. I would like to create a logon script to automatically create a mapped drive "Y:" for me to the local servers shared folder.
*If I remote to server X. I would like to have the logon script automatically replace my currently mapped Y: drive and replace it with a mapped drive on the remote server using the same Letter Y:
*When I log out the remote server X. The mapped drive should revert back to a local server mapped drive I had before I logged into the remote server.
would this work or is there a better way...thank you!
IF LOGONSERVER=local server GOTO A
GOTO B
:A
NET USE Y \\localserver\sharedFoler
GOTO END
:B
NET USE Y \\%LOGONSERVER%\SharedFolder
GOTO END
:END
Thanks again all help is appreciated!!!