What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Downloaded Files

Pages: (2): « First « 1 [ 2 ] Last »
Downloaded Files
Author: Message:
Underlord
Veteran Member
*****

Avatar

Posts: 1037
Reputation: 40
36 / Male / Flag
Joined: Jul 2003
RE: RE: RE: Downloaded Files
quote:
Originally posted by CookieRevised
quote:
Originally posted by -!Felu!-
quote:
Originally posted by NiteMare
the temp folders, or the temporary internet files folder
The Temp folder is located in \Documents and Settings\(username)\Local Settings\Temp
The Temp Internet Files is located in \Documents and Settings\(username)\Local Settings\Temporary Internet Files

Actually, that's not always the case. In fact, it quite often isn't the correct location. The correct location depends on many things. To know the correct location it is best to programmatically get the location by using a certain Windows API: SHGetSpecialFolderPath(). Other than that you can use the registry as a guide:

The Temp folder is located in the directory stated in the environment variable TEMP or TMP. This value of these environment variables can be found in the registry setting:
   HKEY_CURRENT_USER\Environment


%tmp% or %temp% works ;)
05-26-2006 06:56 AM
Profile E-Mail PM Find Quote Report
Eddie
Veteran Member
*****


Posts: 2078
Reputation: 30
32 / Male / Flag
Joined: Oct 2005
Status: Away
O.P. RE: Downloaded Files
Ok thanks all :) yes i know how to save but i hit the wrong button and didnt realise until round 85% complete on downloading Office 2007 :( Thanks all for your help :)
...there used to be a signature here :)
05-26-2006 09:28 AM
Profile PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: RE: RE: Downloaded Files
quote:
Originally posted by Underlord
quote:
The Temp folder is located in the directory stated in the environment variable TEMP or TMP. This value of these environment variables can be found in the registry setting:
   HKEY_CURRENT_USER\Environment

%tmp% or %temp% works ;)
yep, just as I said (see underlined text) ;)

But the TEMP and TMP variables will only be expanded into their corresponding values (as set in the registry) in a command line environment or when used directly within Window's paths (provided those variables are defined that is; which isn't always so...).



Using the TEMP and TMP environment variables inside a program will not work, it will just be another literal string.

There are ways to expand them in a program of course but it is not recommended to use environment variables in programs at all. Especially variables which point to a directory location (like the TMP and TEMP). To always get the proper path (even if those variables don't exist; which is quite possible) you need to use the SHGetSpecialFolderPath API and the likes instead.

This post was edited on 05-26-2006 at 10:35 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-26-2006 10:28 AM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On