Set oFSO = CreateObject("Scripting.FileSystemObject") > Set oShell = CreateObject("WScript.Shell") > > TmpDir = oShell.Environment("Process")("Temp") > cFolder = oFSO.GetSpecialFolder(2) > WScript.Echo vbCRLF > WScript.Echo TmpDir > WSCript.Echo cFolderVBScript guru? Me? Naw! I know a bit about the WSH and have dabbled in VBScript, but I'm not any sort of expert. What's below is purely a VFP perspective.
oEnvirn = oShell.Environment("Process") ? oEnvirn.Item("Tmp") && Returns the temporary directory oFolder = oFSO.GetSpecialFolder(2) ? oFolder.Path && Returns the temporary directory as well