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--