Shoutbox

Downloaded Files - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Downloaded Files (/showthread.php?tid=59730)

Downloaded Files by Eddie on 05-25-2006 at 03:09 AM

Sorry for noob question, but where do files that you have download but only hit run and not save go to? :)


RE: Downloaded Files by NiteMare on 05-25-2006 at 03:12 AM

the temp folders, or the temporary internet files folder


RE: Downloaded Files by Felu on 05-25-2006 at 03:16 AM

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
RE: Downloaded Files by Eddie on 05-25-2006 at 03:33 AM

Thanks Both :)


RE: RE: Downloaded Files by CookieRevised on 05-25-2006 at 11:37 AM

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

And the Temporary Internet Files folders for the current user can be found by looking at the registry setting:
   HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Cache
or
   HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Cache


The default Temporary Internet Files folder for all users (used when no user-specific path is set):
   HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths


NOTE THAT USING THESE REGISTRY KEYS TO FIND THOSE FOLDERS IS ACTUALLY A BAD METHOD! You must use the APIs SHGetSpecialFolderLocation, SHGetSpecialFolderPath and the likes instead...
more here

----------

Talking about APIs to get the exact location, another way to do some stuff with the cached internet files is using the APIs in Wininet.dll: DeleteUrlCacheEntry, FindFirstUrlCacheEntry, FindNextUrlCacheEntry,
FindCloseUrlCache, ...

----------

All in all it shows that the directories of the temporary internet files and temp folder aren't always "\Documents and Settings\(username)\etc". It depends from user to user and from computer to computer.

Moreover, the Temporary Internet Files folder is only used by MSIE. If you use another browser the internet cache folder will be way different and there isn't any API to determine the exact location; to know the exact location for your browser (other than MSIE) you need to look into your browser's preferences.
RE: Downloaded Files by Chris4 on 05-25-2006 at 08:30 PM

On a quick note, use firefox and you can set a location to download the files to. :P


RE: Downloaded Files by Zephyr on 05-25-2006 at 08:56 PM

quote:
Originally posted by Chris4
On a quick note, use firefox and you can set a location to download the files to. :P

Not if you just run the file, i don't think. Unless i've missed something. What would be the point in having the Run option if it saved it?
RE: Downloaded Files by Reload2 on 05-25-2006 at 09:06 PM

I don't know but I always find that run the file is a bit faster than save the file


RE: Downloaded Files by lopardo on 05-25-2006 at 09:32 PM

quote:
Originally posted by Zephyr
quote:
Originally posted by Chris4
On a quick note, use firefox and you can set a location to download the files to. :P

Not if you just run the file, i don't think. Unless i've missed something. What would be the point in having the Run option if it saved it?
The file has to be saved somewhere first. The point of having the Run option is for users that don't understand the file system and then can't find where the file they want is.

When you choose Open, Firefox downloads the file to the user's Temp folder (to easily find it, go to Start > Run, type "%tmp%" and click OK).
Internet Explorer uses its cache folder (you can find it in Tools > Options > Temporary Internet Files > Settings).

quote:
Originally posted by Reload2
I don't know but I always find that run the file is a bit faster than save the file
That's not true, it's the same, but when you choose Run or Open, you don't have to select a folder so it starts right away.
RE: Downloaded Files by Zephyr on 05-25-2006 at 09:39 PM

quote:
Originally posted by lopardo
The file has to be saved somewhere first. The point of having the Run option is for users that don't understand the file system and then can't find where the file they want is.

Yeah, i do understand that. I didn't really express myself clearly though. I meant that if the user sets the folder for the files to go to when they are just open/run, then the user will know where the files are saved. And the point of opening/running a file, is that the user won't have to worry where it is, because it will be in an irrelevant folder.

I understand what im trying to say, sorry if i can't really explain it.
RE: RE: RE: Downloaded Files by Underlord on 05-26-2006 at 06:56 AM

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 ;)
RE: Downloaded Files by Eddie on 05-26-2006 at 09:28 AM

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 :)


RE: RE: RE: RE: Downloaded Files by CookieRevised on 05-26-2006 at 10:28 AM

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.