Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapped Drives not recognized in Windows 10
Message
From
05/04/2016 15:58:42
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 10
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01634105
Message ID:
01634339
Views:
74
>>Have a VFP Application which does a File Copy from a mapped Drive. Works fine in XP, Win7 & Win8.
>>
>>In Windows 10 am getting a File Not Found Error even though the Mapped Drive and File are visible in Windows Explorer.
>>
>>Anyone else had this issue?
>
>
>Could it be an account issue with User Account Control? Like the difference between Admin account and your regular user account? Are you running the app under Admin.
>
>Mapped drives are mapped to a user profile so if your user context changes (like with UAC) it's possible that a mapped drive will disappear.
>
>The best thing I'd recommend is that you explicitly map your drive as part of the application - don't assume it's there.

>+++ Rick ---

I agree, and unless Windows Scripting is not installed, it's really easy.
wshshell=createobject('wscript.shell')
wshnetwork=createobject('wscript.network')
wshnetwork.MapNetworkDrive('p:','\\servername\sharename',.f.,'Username','Password')
Release wshshell
Release wshnetwork
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform