E.0 Understanding Variables

Variables are strings that contain paths to system directories such as Program Files and My Pictures. These variables are enclosed by the percent (%) symbol. The values for these variables are automatically set when Personality Migration starts.

For example, the %os% variable expands the directory where the operating system is installed on the device. For more information on how to migrate the variables, see Section 5.1.2, Using the Template Builder to Create a Template.

The following table describes the variables that are used in Personality Migration. The table lists the values for Windows XP and Windows 7, but the variables can be used on all supported operating systems. The examples assume that the operating systems are installed on the C:\ drive.

Variable

Description

Value for Windows XP

Value for Windows 7

applicationdata

The Application Data directory that contains application-specific data for the current user

C:\Documents and Settings\username\Application Data

C:\Users\username\AppData\Roaming

commonapplicationdata

The Application Data directory that is common to all users

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

C:\ProgramData

commondesktop

The Desktop directory that is common to all users

C:\Documents and Settings\All Users\Desktop

C:\Users\Public\Desktop

commondocuments

The Documents directory that contains documents that are common to all users

C:\Documents and Settings\All Users\Documents

C:\Users\Public\Documents

commonprogramfiles

The Common Files directory that contain files common to various applications

C:\Program Files\Common Files

C:\Program Files\Common Files

commonstartmenu

The Start Menu directory that contains the Start menu items common to all users

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

C:\ProgramData\Microsoft\Windows\Start Menu

computername

Name of the device

If the hostname is abc, the value of the variable is abc

If the hostname is abc, the value of the variable is abc

cookies

The Cookies directory that contains the browser cookies

C:\Documents and Settings\username\Cookies

C:\Users\ username \AppData\Roaming\Microsoft\Windows\Cookies

desktop

The logical desktop for the current user

C:\Documents and Settings\ username \Desktop\

C:\Users\username\Desktop\

favorites

The Favorites directory that contains the favorite items for the current user

C:\Documents and Settings\ username \Favorites

C:\Users\ username\Favorites

fonts

The Fonts directory that contains system fonts

C:\WINDOWS\Fonts

C:\WINDOWS\Fonts

history

The History directory that contains the browser history for the current user

C:\Documents and Settings\ username\Local Settings\History

C:\Users\ username \AppData\Local\Microsoft\Windows\History

internetcache

The Temporary Internet Files directory that contain the temporary Internet files for the current user

C:\Documents and Settings\username\Local Settings\Temporary Internet Files

C:\Users\username\AppData\Local\Microsoft\Windows\Temporary Internet Files

localapplicationdata

The directory that contains the local application-specific data that is used by the current user

C:\Documents and Settings\ username \Local Settings\Application Data

C:\Users\ username \AppData\Local

mymusic

The My Music directory for the current user

C:\Documents and Settings\ username\My Documents\My Music

C:\Users\ username\Music

mypictures

The My Pictures directory for the current user

C:\Documents and Settings\ username\My Documents\My Pictures

C:\Users\ username\Pictures

myvideo

The My Video directory for the current user

C:\Documents and Settings\username\My Documents\My Videos

C:\Users\username\Videos

os

The Windows install directory

C:\WINDOWS

C:\Windows

personal

The directory that contains the user's documents

C:\Documents and Settings\username\My Documents

C:\Users\username\Documents

profile

The directory that contains the current user's profile

C:\Documents and Settings\username

C:\Users\username

profiles

The directory that contains the All Users profile

C:\Documents and Settings

C:\Users

programs

The Programs directory

C:\Documents and Settings\username\Start Menu\Programs

C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs

quicklaunch

The Quick Launch directory

C:\Documents and Settings\username\Application Data\Microsoft\Internet Explorer\Quick

C:\Users\username\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch

recent

The directory that contains shortcuts to the documents recently used by the user

C:\Documents and Settings\username\Recent

C:\Users\username\AppData\Roaming\Microsoft\Windows\Recent

sendto

The SendTo directory that contains the Send To menu items

C:\Documents and Settings\username\SendTo

C:\Users\username\AppData\Roaming\Microsoft\Windows\SendTo

startmenu

The Start Menu directory that contains the Start menu items

C:\Documents and Settings\username\Start Menu

C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu

startup

The Startup directory that contains the startup items for the user

C:\Documents and Settings\username\Start Menu\Programs\Startup

C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

system

The System directory

C:\WINDOWS\system32

C:\WINDOWS\system32

tempdirectory

The Temp directory that contains the temporary files

C:\DOCUME~1\username\LOCALS~1\Temp\

C:\Users\username\AppData\Local\Temp\

templates

The Template directory that stores document templates

C:\Documents and Settings\username\Templates

C:\Users\username\AppData\Roaming\Microsoft\Windows\Templates

username

The name of the currently logged-in user

If the username is abc, the value of the variable is abc.

If the username is abc, the value of the variable is abc.