How to get the temp directory of the system?

A

animator

Hi everyone
How to get the temporary directory of the system, in my VBA program?
I want to create some temporary files for my operations.
Thank you!
 
W

Word Heretic

G'day "animator" <[email protected]>,

%temp% in a shell

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


animator reckoned:
 
A

Andi Mayer

Hi everyone
How to get the temporary directory of the system, in my VBA program?
I want to create some temporary files for my operations.
Thank you!
Environ("tmp")
 
P

Peter

animator said:
Hi everyone
How to get the temporary directory of the system, in my VBA program?
I want to create some temporary files for my operations.
Thank you!

Just to give you another option:

Dim sTmp as String
sTmp = Application.Options.DefaultFilePath(wdTempFilePath)
MsgBox "The temporary folder is " & sTmp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top