Getting the TEMP Enviro Variable using VBScript 
Author Message
 Getting the TEMP Enviro Variable using VBScript

I am creating an Outlook form (2000) and need to write a temp file out.  
I would like to do all the work in the users TEMP directory.  Normally in
VB, I would use the Environ("TEMP") command but this is not in VBScript.
(That I know of...looked thru the help etc...)

Any ideas?

As always, thanks in advance for any and all help.

Geo...



Mon, 30 Dec 2002 03:00:00 GMT  
 Getting the TEMP Enviro Variable using VBScript
Geo,
 With VBScript, you need to use WSH.

Look at GetTempName method of the Scripting.FileSystemObject object
or alternatively GetSpecialFolder method of the Scripting.FileSystemObject

Followed by Scripting.FileSystemObject.GetFolder()

Hope this helps
Jay


Quote:
> I am creating an Outlook form (2000) and need to write a temp file out.
> I would like to do all the work in the users TEMP directory.  Normally in
> VB, I would use the Environ("TEMP") command but this is not in VBScript.
> (That I know of...looked thru the help etc...)

> Any ideas?

> As always, thanks in advance for any and all help.

> Geo...



Mon, 30 Dec 2002 03:00:00 GMT  
 Getting the TEMP Enviro Variable using VBScript

WshEnvironment Object
http://msdn.microsoft.com/scripting/windowshost/doc/wsObjWshEnvironme...

--
Michael Harris
MVP Scripting


I am creating an Outlook form (2000) and need to write a temp file out.
I would like to do all the work in the users TEMP directory.  Normally in
VB, I would use the Environ("TEMP") command but this is not in VBScript.
(That I know of...looked thru the help etc...)

Any ideas?

As always, thanks in advance for any and all help.

Geo...



Mon, 30 Dec 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. getting enviro vars values off a remote machine...

2. Getting data from #TEMP table using ADO

3. Creating Temp Table using VBScript

4. passing javascript variable into asp variable using vbscript

5. System variable for Windows\Temp ?

6. Get environnement variable : Temp Directory

7. Environment Variable not reporting correctly (TEMP)

8. Getting Server variables in VBScript

9. Keep getting object variable not set when using inet

10. How do I get at TEMP system variable??

11. Getting Email from a client browser using vbscript.

12. Temp Variables etc?

 

 
Powered by phpBB® Forum Software