>>Logged as administrator is not enough.
>>Just try it. Right clivk on your application and select "Run as administrator"
>
>...so even though it works from the CMD prompt, it won't work from the VFP command window???
>I have to compile an .exe and run it to try it???
Not really. Your process which spawns a cmd to run openfiles needs to be run as admin. The process in this case is your vfp.exe - so run that as admin and then try again.