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