Changes

Jump to: navigation, search
Terminal Server Application Compatibility Scripts
If the application uses a fixed path name for user files that will cause problems when there are multiple users a useful trick is to map these paths to a drive letter and then set the drive to point to different paths for each user. For example, user ''Bill'' might have drive letter ''E:'' mapped to ''C:\users\bill\data'' while user ''Joe'' would have ''E:'' mapped to ''C:\users\joe\data''.
Another option is to use ''compatibility scripts'' which get executed each time a remote user launches an application. Windows Server 2008 provides two sample scripts located in ''%SystemRoot%\Application Compatibility Scripts''. ''RootDrv.cmd'' maps a drive letter to the home directory of the user executing the script enabling the trick outlined above to be peformed automitcally.  The ''SetPaths.cmd'' script converts user common paths (such as My Documents) into environment variables thereby avoiding the use of hardcoded path names.By default the script converts the following paths to the corresponding environment variables: All Users:Startup COMMON_STARTUPAll Users:Start Menu COMMON_START_MENUAll Users:Start Menu\Programs COMMON_PROGRAMSCurrent User:Start Menu USER_START_MENUCurrent User:Startup USER_STARTUPCurrent User:Start Menu\Programs USER_PROGRAMSCurrent User:My Documents MY_DOCUMENTSCurrent User:Templates TEMPLATESCurrent User:Application Data APP_DATA

Navigation menu