Predefined System Environment Variables

A file destination path specified in Target Designer or Component Designer must be defined as it is intended for the target system. To assist with this, environment variables can be used to represent folders on your run-time image. The list of environment variables provided in the Windows Embedded Studio tools displays each variable with its corresponding path on the development system, not the target system, and the two are not necessarily the same.

The following table shows the environment variables listed in Target Designer and Component Designer and the resulting path on the target system.

Environment VariablePathExample
%24% Apps C:\
%53%UserprofileC:\Documents and Settings\username
%16406%All Users\Start MenuC:\Documents and Settings\All Users\Start Menu
%16407%All Users\Start Menu\ProgramsC:\Documents and Settings\All Users\Start Menu\Programs
%16408%All Users\Start Menu\Programs\StartupC:\Documents and Settings\All Users\Start Menu\Programs\Startup
%16409%All Users\DesktopC:\Documents and Settings\All Users\Desktop
%16415%All Users\FavoritesC:\Documents and Settings\All Users\Favorites
%16419%All Users\Application DataC:\Documents and Settings\All Users\Application Data
%16422%Program FilesC:\Program Files
%16425%system 32 on RISCC:\Windows\system32
%16426%Program Files on RISCC:\Program Files
%16427%Program Files\CommonC:\Program Files\Common
%16428%x86 Program Files\Common on RISCC:\Program Files\Common
%16429%All Users\TemplatesC:\Documents and Settings\All Users\Templates
%16430%All Users\DocumentsC:\Documents and Settings\All Users\Documents
%16437%All Users\Documents\My MusicC:\Documents and Settings\All Users\Documents\My Music
%16438%All Users\Documents\My PicturesC:\Documents and Settings\All Users\Documents\My Pictures

See Also

Reassign Drive Letters to Volumes in Target Designer | Design a Run-Time Image | Custom Resources | Resources

© 2006 Microsoft Corporation. All rights reserved.