>>In a VFP desktop application, is it possible to elevate to administrator during running the programming?
>>
>>Usually administrator rights are not required, but certain tasks do require administrator rights. I would like to prompt the user to elevate so certain tasks can be performed.
>
>I haven't done it, but I believe you can use RunAs for this. This can be invoked programmatically e.g.
http://alt.pluralsight.com/wiki/default.aspx/Keith.GuideBook/HowToRunAProgramAsAnotherUser.html>
>Unfortunately that example is .Net rather than VFP. I believe the question has been asked/answered here before, with a VFP solution ( Hugo Ranea, maybe? ).
The RunAs solution can be found in fox.wikis.com
http://fox.wikis.com/wc.dll?Wiki~RunAsAnotherUser
If it's not broken, fix it until it is.
My Blog