Tuesday, February 24, 2009

How to get windows special folders

If you are logged in Windows XP then your login has some special folders according to logged-in user like every logged-in user has own settings in a special folder. Every logged-in user has own desktop folder. Every logged-in user has own "My document" folder.

Type the following commands in "Run command".

Get home drive of Windows type the following command in "Run command"
%HOMEDRIVE%

Open Windows folder. It will open folder where Windows is installed.
%WinDir%

Get and open Common Program Files folder.
%CommonProgramFiles%

Get and open Application data folder of current user.
%AppData%

Get and open folder which has all user profiles.
%ALLUSERSPROFILE%

Get and open home path of logged-in user.
%HomePath%

Get and open Program Files folders (Program Files folder has all installed program of Windows).
%ProgramFiles%

Open System drive. Normally it is C: but it can be different in some circumstances.
%SystemDrive%

Open System root folder.
%SystemRoot%

Open temporary files folder.
%Temp%
or
%Tmp%

Open current user's profile folder.
%UserProfile%

Open Desktop folder.
%UserProfile%Desktop

Note: These commands are not case sensitive. You can use these commands in any case like you can use %SystemRoot% or %SYSTEMROOT% or %SyStEmRoOt%. Every case will work on Windows.

No comments: