Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PM on new Win 10 PC
Message
From
18/01/2019 02:19:21
 
 
To
18/01/2019 02:09:43
General information
Forum:
Visual FoxPro
Category:
Project manager
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01665495
Message ID:
01665522
Views:
67
>>>Interesting find - when I elevate VFP to use administrator, I no longer have access to my mapped drives from within foxpro. Must be because those are mapped using my "regular" credentials and since VFP is now running under a different account, Windows blocks access to those drives. That is, I could not do:
>>>
>>>
USE F:\Claims\Apps.dbf
>>>
>>>once VFP was elevated. If I went out to Win explorer, the table is there. But if I try to browse to it from within VFP, even issuing
>>>
>>>
USE ?
>>>
>>>the dialog would come up and for a second, you could see the mapped drive and then it disappeared.
>>>
>>>I will set the shortcut back to not use the administrator level and just live with the dialog regarding the registry - it would not be the first or only time I have had to click through a dialog box :-)
>>>
>>>albert
>>>
>>>>Run VFP9 as Administrator (you can set it permanently on the shortcut under the Right-click properties, and Compatibility tab, and "Run this program as an administrator."
>>
>>Run VFP9 as Administrator is a bad idea. You should rather solve the issue then circumvent it. Any programm that needs to run as admin is to be moved to the NULL device. We do not live in the 80's any more.
>>
>
>Lutz,
>
>I believe there must be an OLEPUBLIC class somewhere on Albert's project. When the project is built, the class is (re-)registered in the system. As far as I know, in W10 you must have special privileges to do that, but if you know of some other way to build an OLEPUBLIC class without running the IDE as administrator, I too would gladly use that.


I think so as well

There are a few solutions - read the pdf on this page http://www.atoutfox.com/articles.asp?ACTION=FCONSULTER&ID=0000000845
It's in French

(1) Disactivate UAC
(2) Launch vfp as administrator
(3) Modify the registry to allow the user access
- start regedit
- navigate to HKEY_CLASSES_ROOT
- rightclick - permissions
   --- add the user with full control and read permissions
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform