1.

Solve : Enviroment Variables?

Answer»

Hi,

How is that any folder in C:\Documents and Settings\Appu can opened by just typing folder name in the Run (Win+R) window. How is that possible ? I would like to set this behavior for other folders too which are under some other folder not necessarily located in C:\Documents and Settings\Appu. Pls explain specifically how this above concept works.

I know that such settings are RELATED to setting "Environmental Variables" but I not sure abt the concept as to how that works.

Moreover there are two entries "TEMP" "TMP" under "System Variables", both pointing to same path "%SystemRoot%\TEMP" or C:\WINDOWS\TEMP. Is one of them a redundant entry or both are useful.

Thanks in advance.

rseni.1) If a folder is in the "path" in "Environment Variables", the system automatically knows to look there for any file you want to run.

2) All that means is that any file with the extension .tmp or .temp will automatically be placed in your temp folder.Quote from: rseni on September 23, 2010, 10:51:58 PM

Moreover there are two entries "TEMP" "TMP" under "System Variables", both pointing to same path "%SystemRoot%\TEMP" or C:\WINDOWS\TEMP. Is one of them a redundant entry or both are useful.

It's historical. GOES back to MS-DOS. Some programs and scripts use the system variable %tmp% to define where to store temporary files. Others use %temp%. So it is useful to have both, and sensible to have them both expand to the same value. If %temp% or %tmp% EXPANDS to nothing (i.e. the variable is not DEFINED) then the current folder is used for temporary files.

It has nothing WHATSOEVER to do with file extensions. Files with the extension .tmp or .temp will not be automatically placed anywhere (by what?)

Thanks for the correction ST


Discussion

No Comment Found