Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run as Administrator
Message
De
07/04/2011 10:39:18
 
 
À
07/04/2011 08:26:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01506020
Message ID:
01506374
Vues:
72
>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

Doug,

Sincere thanks for your solution! It's too elegant. I would like to express gratitude for sharing your expert insight. You and countless others here at UT contribute greatly to those of us so in need of assistance. THANK YOU!

dg
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform