Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reconnect to mapped network drive
Message
From
05/10/2007 17:18:46
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01258845
Message ID:
01259088
Views:
21
>Have you tried this to force the drive to unmap? It will work as long as the OS has no open files (or folders) on the drive:
>cDriveLetter=...whatever is the mapped drive letter
>TRY
>  oNW=CreateObject("WScript.Network")
>  oNW.RemoveNetworkDrive(cDriveLetter)
>CATCH
>  ...whatever
>ENDTRY
>
>>There isn't a network section. I'm not sure this section right but...
>>
>>Hi All,
>>
>>You know. You map a network drive. After downed remote computer, connection will be no longer. Remote computer turned up again and you have to click that mapped drive from my computer for run your links mapped from that drive. That click make your pc reconnect that remote computer.
>>
>>How can I do that with VFP codes without click from my computer that mapped drive? I have to reconnect that mapped drive...

Thanks, Borislav's message worked good.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform