Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Finding temp folder. Environment variable?

I'm starting an enhancement where my spreadsheet will save a bunch of PDF
files into a folder, and then I'll call some application on the server that
will append them all together. For the appending I'm looking at:
http://appligent.com/products/append...nd_pdf_pro.php

It would make sense to me to put all the files in a folder under the Temp
folder. My recollection is the path to the temp folder was in an
environment variable. How do I read it? Or is it someplace in the Registry?
I have code to read that, if I know the location where it is stored.

Don <www.donwiss.com (e-mail link at home page bottom).
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Finding temp folder. Environment variable?

This worked ok for me:

MsgBox Environ("Temp")

in WindowsXP Home

Don Wiss wrote:

I'm starting an enhancement where my spreadsheet will save a bunch of PDF
files into a folder, and then I'll call some application on the server that
will append them all together. For the appending I'm looking at:
http://appligent.com/products/append...nd_pdf_pro.php

It would make sense to me to put all the files in a folder under the Temp
folder. My recollection is the path to the temp folder was in an
environment variable. How do I read it? Or is it someplace in the Registry?
I have code to read that, if I know the location where it is stored.

Don <www.donwiss.com (e-mail link at home page bottom).


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Finding temp folder. Environment variable?

Another option is to use filesystemobject

Sub GetTempFolder_1()
MsgBox Environ("Temp")
'Open folder in Explorer
Shell "explorer.exe " & Environ("Temp"), vbNormalFocus
End Sub

Sub GetTempFolder_2()
Dim FSO As Object, TmpFolder As Object
Set FSO = CreateObject("scripting.filesystemobject")
Set TmpFolder = FSO.GetSpecialFolder(2)
MsgBox TmpFolder
'Open folder in Explorer
Shell "explorer.exe " & TmpFolder, vbNormalFocus
End Sub



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Dave Peterson" wrote in message ...
This worked ok for me:

MsgBox Environ("Temp")

in WindowsXP Home

Don Wiss wrote:

I'm starting an enhancement where my spreadsheet will save a bunch of PDF
files into a folder, and then I'll call some application on the server that
will append them all together. For the appending I'm looking at:
http://appligent.com/products/append...nd_pdf_pro.php

It would make sense to me to put all the files in a folder under the Temp
folder. My recollection is the path to the temp folder was in an
environment variable. How do I read it? Or is it someplace in the Registry?
I have code to read that, if I know the location where it is stored.

Don <www.donwiss.com (e-mail link at home page bottom).


--

Dave Peterson



  #4   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Finding temp folder. Environment variable?

You could try VBA's Environ function

Environ("Temp")


"Don Wiss" wrote:

I'm starting an enhancement where my spreadsheet will save a bunch of PDF
files into a folder, and then I'll call some application on the server that
will append them all together. For the appending I'm looking at:
http://appligent.com/products/append...nd_pdf_pro.php

It would make sense to me to put all the files in a folder under the Temp
folder. My recollection is the path to the temp folder was in an
environment variable. How do I read it? Or is it someplace in the Registry?
I have code to read that, if I know the location where it is stored.

Don <www.donwiss.com (e-mail link at home page bottom).

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default Finding temp folder. Environment variable?

MsgBox Environ$("temp")

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Don Wiss" wrote:
| I'm starting an enhancement where my spreadsheet will save a bunch of PDF
| files into a folder, and then I'll call some application on the server
that
| will append them all together. For the appending I'm looking at:
| http://appligent.com/products/append...nd_pdf_pro.php
|
| It would make sense to me to put all the files in a folder under the Temp
| folder. My recollection is the path to the temp folder was in an
| environment variable. How do I read it? Or is it someplace in the
Registry?
| I have code to read that, if I know the location where it is stored.
|
| Don <www.donwiss.com (e-mail link at home page bottom).




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Finding temp folder. Environment variable?

General one should feel safe/comfortable to have anything in the temp folder
deleted.

If they fit that definition, then that would be a good place.

--
Regards,
Tom Ogilvy

"Don Wiss" wrote in message
...
I'm starting an enhancement where my spreadsheet will save a bunch of PDF
files into a folder, and then I'll call some application on the server
that
will append them all together. For the appending I'm looking at:
http://appligent.com/products/append...nd_pdf_pro.php

It would make sense to me to put all the files in a folder under the Temp
folder. My recollection is the path to the temp folder was in an
environment variable. How do I read it? Or is it someplace in the
Registry?
I have code to read that, if I know the location where it is stored.

Don <www.donwiss.com (e-mail link at home page bottom).



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Finding temp folder. Environment variable?

Don,
Environ ("Temp") is one way.

NickHK

"Don Wiss" wrote in message
...
I'm starting an enhancement where my spreadsheet will save a bunch of PDF
files into a folder, and then I'll call some application on the server

that
will append them all together. For the appending I'm looking at:
http://appligent.com/products/append...nd_pdf_pro.php

It would make sense to me to put all the files in a folder under the Temp
folder. My recollection is the path to the temp folder was in an
environment variable. How do I read it? Or is it someplace in the

Registry?
I have code to read that, if I know the location where it is stored.

Don <www.donwiss.com (e-mail link at home page bottom).



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 2003 Environment and Microsoft Office Excel temp files Trish Excel Discussion (Misc queries) 2 December 29th 09 07:58 PM
Problem using obj.Namespace(sourceFileName) Namespace(DestinationFilename).Itemsand then opening the xls file which creates a Temp Folder inside Temp Yuvraj Excel Discussion (Misc queries) 3 May 3rd 09 11:59 AM
Finding files in a folder. Variable not defined error. Ayo Excel Discussion (Misc queries) 1 March 14th 08 01:14 PM
Why does Office always save my file in a temp folder? Help Save Work Easier Excel Discussion (Misc queries) 1 September 30th 07 10:39 PM
delete all the contents (sub folders and files) in the temp folder Joseph Excel Discussion (Misc queries) 0 June 6th 05 08:01 AM


All times are GMT +1. The time now is 01:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"