Skip to end of metadata
Go to start of metadata

One of the first changes in Windows 7 (and Vista) that will be apparent to support staff used to Windows XP are the changes in the directory structure. Though some old directory names still appear, they are "junction points" (directory symbolic links), just pointers for Windows Explorer to the new directory. These junction points don't always work as expected (especially from the command line), so you should know the new locations.

Many of these locations are represented by Windows environment variables, which you can use from the command line as well as in Windows Explorer. (Wikipedia has a detailed explanation here.) Where an environment variable exists, it appears in the table, but it may not work in older operating systems like Windows XP.

The directories listed here are for 32-bit Windows 7, Vista, and XP. 64-bit Windows 7 will introduce some complications.(smile)

Anywhere in the table below that you see a forward slash /, use a backslash \ instead. This Confluence system cannot render stylized backslashes correctly, so sometimes I have to use a forward slash.


Windows XP Directory

Windows 7/Vista Directory

Environment Variable

Windows Directory



%SystemRoot%, also %windir% in batch files

System Directory












Program Files

C:\Program Files

C:\Program Files 2


Program Files Common

C:\Program Files\Common Files

C:\Program Files\Common Files 2







C:\Documents and Settings/USERNAME



(My) Documents

%UserProfile%\My Documents



(My) Pictures

%UserProfile%\My Documents\My Pictures

%UserProfile%\Pictures 3


Application Data

%UserProfile%\Application Data 1



Local AppData

%UserProfile%\Local Settings\Application Data


%LocalAppData% Win7


%UserProfile%\Local Settings\Temp







Start Menu Programs

%UserProfile%\Start Menu\Programs

%UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs


(IE) Favorites












All Users Profile

C:\Documents and Settings\All Users


%Public% on Win7, %AllUsersProfile% on XP

Common AppData

C:\Documents and Settings\All Users\Application Data


%ProgramData% Win7, %AllUsersProfile% Win7

Common Start Menu Programs

C:\Documents and Settings\All Users\Start Menu\Programs4

C:\ProgramData\Microsoft\Windows\Start Menu\Programs4


Common Desktop

C:\Documents and Settings\All Users\Desktop



Shared Documents

C:\Documents and Settings\All Users\Documents



Shared Pictures

C:\Documents and Settings\All Users\Documents\My Pictures

C:\Users\Public\Pictures 3







Windows XP Directory

Windows 7/Vista Directory

Environment Variable

1 Directory may be hidden, so it may not appear when you press {Tab} at a command line to complete the name

2 On 64-bit Windows, the directory for 32-bit programs is C:\Program Files (x86), represented as %ProgramFiles(x86)%

3 Note how this directory has been promoted, now parallel to Documents; it's the same for Music and Videos

4 Note how these directories relate differently, at different levels, to their %AllUsersProfile% parents.

Disclaimer: This information was correct as of when it was created based on Sande's best knowledge. If this page has been edited by anyone else, Sande is not responsible for the accuracy of the information.