Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Map network drive to always connect at logon
Message
 
 
To
23/10/2003 23:34:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00841946
Message ID:
00842004
Views:
17
You can check if share's mapped already.
IF DRIVETYPE("H:") <> 4
  onet.mapnetworkdrive("H:","\\server1\data",.T.)
ENDIF
>i use WSH to connect to a network drive, and i want to always connect it at logon so i use,
>
>
onet.mapnetworkdrive "H:","\\server1\data","True"
>
>but the second time i run the program i have this error,
>
>OLE IDispatch exception code 0 from WSHNetwork.MapNetworkDrive: An attemp was made to remember a device that had previously been remembered.
>
>what should i do?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform