Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.9 KiB

  1. Set _CHKROOT=PASS
  2. Cd "%SystemRoot%\Application Compatibility Scripts"
  3. Call RootDrv.Cmd
  4. If Not "A%ROOTDRIVE%A" == "AA" Goto Cont2
  5. Echo REM > RootDrv2.Cmd
  6. Echo REM Before running this application compatibility script, you must >> RootDrv2.Cmd
  7. Echo REM designate a drive letter, that is not already in use for >> RootDrv2.Cmd
  8. Echo REM Terminal Server, to be mapped to each user's home directory. >> RootDrv2.Cmd
  9. Echo REM Update the "Set RootDrive" statement at the end of >> RootDrv2.Cmd
  10. Echo REM this file to indicate the desired drive letter. If you have >> RootDrv2.Cmd
  11. Echo REM no preference, the drive W: is suggested. For example: >> RootDrv2.Cmd
  12. Echo REM >> RootDrv2.Cmd
  13. Echo REM Set RootDrive=W: >> RootDrv2.Cmd
  14. Echo REM >> RootDrv2.Cmd
  15. Echo REM Note: Make sure there are no spaces after the drive letter and colon. >> RootDrv2.Cmd
  16. Echo REM >> RootDrv2.Cmd
  17. Echo REM When you have completed this task, save this file and exit >> RootDrv2.Cmd
  18. Echo REM NotePad to continue running the application compatibility script. >> RootDrv2.Cmd
  19. Echo REM >> RootDrv2.Cmd
  20. Echo. >> RootDrv2.Cmd
  21. Echo Set RootDrive=>> RootDrv2.Cmd
  22. Echo. >> RootDrv2.Cmd
  23. NotePad RootDrv2.Cmd
  24. Call RootDrv.Cmd
  25. If Not "A%ROOTDRIVE%A" == "AA" Goto Cont1
  26. Echo.
  27. Echo Before running this application compatibility script, you must
  28. Echo designate a drive letter to be mapped to each user's home
  29. Echo directory.
  30. Echo.
  31. Echo Script terminated.
  32. Echo.
  33. Pause
  34. Set _CHKROOT=FAIL
  35. Goto Cont3
  36. :Cont1
  37. Rem
  38. Rem Invoke the User Logon script to map the root drive now so it
  39. Rem can be used to install applications.
  40. Rem
  41. Call "%SystemRoot%\System32\UsrLogon.Cmd
  42. :Cont2
  43. Rem Set the RootDrive key in the registry
  44. echo HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Terminal Server > chkroot.key
  45. echo RootDrive = REG_SZ %ROOTDRIVE%>> chkroot.key
  46. regini chkroot.key > Nul:
  47. :Cont3
  48. Cd "%SystemRoot%\Application Compatibility Scripts\Install"