General information
Category:
Installation, Setup and Configuration
Hi Doyle.
>Once running I was using a Shell object to determine the presence of an internet connection. This function seems not to run unless the app is being Run as Administrator.
I tried your code while running VFP as a standard user without elevating and it worked for me AFTER I changed the path to the file. That's the cause of the problem: the root of the drive is a protected location, so you can't write to C:\LocalIP.txt without elevating. Instead, why not use SYS(2023) (the user's temporary files folder) i.e.
lcTempFile = addbs(sys(2023)) + 'LocalIP.txt'
Doug
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only