Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obter Diretorio Windows System no Win 2000
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00642317
Message ID:
00643544
Vues:
13
Uma outra forma é com o WSH:
#define WINDOWS_FOLDER 0
#define SYSTEM_FOLDER 1
#define TEMP_FOLDER 2
oWsh = CreateObject("Scripting.FileSystemObject")
? oWsh.GetSpecialFolder(SYSTEM_FOLDER).Name
>Aqui o
>
>? JUSTPATH(GETENV("Comspec"))
>
>Não funcionou, pois meu comspec esta setado para:
>
>c:\windows\system
>
>o que faz retornar:
>
>c:\windows


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform