David Connell

Software Developer - Red Gate Software

Explorer and Environment variables

Published Wednesday, November 23, 2005 9:05 AM

You can type environment variables into the the Explorer Address bar and it is expanded into its full path.
Typical examples include:

 

Environment Variable  Meaning Example
%TEMP% Temp directory C:\TEMP
%TMP% Temp directory C:\TEMP
%USERPROFILE% Current Profile C:\Documents and Settings\David Connell
%WINDIR% Windows Directory  C:\Windows

You may have some company specific enviroment variables, check it out by going to a command prompt and typing in "SET"
These variables can also be used in a command prompt eg

C:\>MD %USERPROFILE%\TEST
But be warned when using environment variables on a command line with the TAB key the system always seemed to scan the temporary directory!
Thanks to Dan A for showing me that.

Comments

No Comments
You need to sign in to comment on this blog

















<November 2005>
SuMoTuWeThFrSa
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910
Ziggurats, Batman and the Town Crier
 We asked Brian for a description of the Help System for the software he's working on and ends up... Read more...

The Future of NET Reflector
 Simple Talk asked freelance writer Bob Cramblitt to sit down with the two people behind the agreement... Read more...

Software Tool Design: Remote User Testing
 If you are developing a software product, you'll know that the sooner you can get feedback from the... Read more...

SQL Toolbelt 2008: Predominantly an Engineering Task
 The conversion of the Red-Gate tools to be compatible with SQL Server 2008 might not seem, on first... Read more...

Andrew Tanenbaum: Geek of the Week
 Andrew Tanenbaum has had an immense influence on the way that operating systems are designed. He... Read more...