Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSH: how to get dfault TEMP dir
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00394247
Message ID:
00580067
Views:
32
If all else failed, did you try GETENV() ?

>>I will get in before Ed here.
>>
>>oWSH=CreateObject("scripting.filesystemobject")
>>oTempFolder=oWSH.GetSpecialFolder(2) && TempFolder
>>?oTempFolder.Path
>>
>>
>>>How can i get the windows default temp dirlike c:\windows\temp or c:\winnt\temp.
>>>I looked in WSH (dino Esposito) but find only folders like Mydocuments but not temp.
>>>Any help (Ed Rauh where are you)would be appriciated
>>>
>>>
>>>Peter
>
>That gives you the current user temp dir but not the system temp dir (more important for me). Got any ideas?


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