Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

How to get the temp directory of  the system?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
animator - 05 Jan 2005 06:13 GMT
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!
Word Heretic - 05 Jan 2005 09:28 GMT
G'day "animator" <lidelu@sina.com>,

%temp% in a shell

Steve Hudson - Word Heretic

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

animator reckoned:

>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!
Andi Mayer - 05 Jan 2005 10:31 GMT
>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")
---
If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW
Peter - 05 Jan 2005 18:10 GMT
> 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

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.