Show Contents / Index / Search

Pattern Strings in Directory Paths

Reflection for Secure IT supports the following pattern strings for specifying directory paths for user public key locations and SFTP file transfer directories.

This string

Evaluates to


The user’s User profile.

For example, if the server is running on Windows Server 2003 and the user name is "joe", %D\.ssh2 will typically be equivalent to:

C:\Documents and Settings\joe\.ssh2



The user's Home folder.

By default this is the same as the User profile, but the Windows system administrator can specify a different location.



The user’s login name.

For example, if the user name is "joe", ssh_users\%u is equivalent to:



  • With this option, the server is unable to distinguish between a local and domain user with the same user name — both are given access to the same directory.
  • Do not use %u to specify a location in the Windows profile folder. Depending on how users have logged into the server host previously, the user-specific subdirectory in the profile path may be just a user name, or may be both a user and domain in the format "user.domain".




The user's domain name and login in the format "domain.username".

For example, if "joe" logs in from the "sky" domain (sky\joe), ssh_users\%U\ is equivalent to:


Note: Do not use %U to specify a location in the Windows profile folder. The format for specifying user and domain in the Windows profile path is "user.domain", which is the reverse of the order specified by %U.



  • The value %D is equivalent to the Windows environment variable USERPROFILE.
  • The value %H is based on the Home folder value stored in the user's Windows account. The two Windows environment variables HOMEDRIVE and HOMEPATH are also based on this value.
  • The value of %u is equivalent to the Windows environment variable USERNAME.
  • The value of %U is based on two Windows environment variables: USERDOMAIN and USERNAME.

Related Topics

Public Key Pane

SFTP Directories Pane