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

Downloaded Files
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Downloaded Files - by Eddie on 05-25-2006 at 03:09 AM
RE: Downloaded Files - by NiteMare on 05-25-2006 at 03:12 AM
RE: Downloaded Files - by Felu on 05-25-2006 at 03:16 AM
RE: Downloaded Files - by Eddie on 05-25-2006 at 03:33 AM
RE: RE: Downloaded Files - by CookieRevised on 05-25-2006 at 11:37 AM
RE: RE: RE: Downloaded Files - by Underlord on 05-26-2006 at 06:56 AM
RE: RE: RE: RE: Downloaded Files - by CookieRevised on 05-26-2006 at 10:28 AM
RE: Downloaded Files - by Chris4 on 05-25-2006 at 08:30 PM
RE: Downloaded Files - by Zephyr on 05-25-2006 at 08:56 PM
RE: Downloaded Files - by Reload2 on 05-25-2006 at 09:06 PM
RE: Downloaded Files - by lopardo on 05-25-2006 at 09:32 PM
RE: Downloaded Files - by Zephyr on 05-25-2006 at 09:39 PM
RE: Downloaded Files - by Eddie on 05-26-2006 at 09:28 AM


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