Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obter Diretorio Windows System no Win 2000
Message
From
10/04/2002 19:24:38
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00642317
Message ID:
00643544
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform