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.7 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 �b�����o�����ε{���ۮe�ʫ��O�ɫe�A�z������ >> RootDrv2.Cmd
  7. Echo REM ���w�@�ө|���Φb�׺ݾ����A�����Ϻо� >> RootDrv2.Cmd
  8. Echo REM �N���A�Υ��ӹ����C�ӨϥΪ̪��D�ؿ��C >> RootDrv2.Cmd
  9. Echo REM �Ч��s�o���ɮ׵����� "Set RootDrive" �ԭz���A�� >> RootDrv2.Cmd
  10. Echo REM ���X�һݪ��Ϻо��N���C�p�G�z�S���ߦn�]�w�A >> RootDrv2.Cmd
  11. Echo REM ��ij�z�ϥκϺо� W:�C�Ҧp: >> RootDrv2.Cmd
  12. Echo REM >> RootDrv2.Cmd
  13. Echo REM Set RootDrive=W: >> RootDrv2.Cmd
  14. Echo REM >> RootDrv2.Cmd
  15. Echo REM �`�N�ƶ�: �нT�w�b�Ϻо��N���Ϋ_���᭱�S���Ů��C >> RootDrv2.Cmd
  16. Echo REM >> RootDrv2.Cmd
  17. Echo REM �b�z�����o�Ӥu�@���A���x�s�o���ɮרõ��� >> RootDrv2.Cmd
  18. Echo REM �O�ƥ��A�H�~���������ε{���ۮe�ʫ��O�ɡC >> 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 �b�����o�����ε{���ۮe�ʫ��O�ɫe�A�z������
  28. Echo ���w�@�ӺϺо��N���A�Υ��ӹ����C�ӨϥΪ̪�
  29. Echo �D�ؿ��C
  30. Echo.
  31. Echo ���O�ɲפ��C
  32. Echo.
  33. Pause
  34. Set _CHKROOT=FAIL
  35. Goto Cont3
  36. :Cont1
  37. Rem
  38. Rem �I�s�ϥΪ̵n�J���O�ɨӹ����{�b���ںϺо��A
  39. Rem �H�K�i�����ε{���w�ˡC
  40. Rem
  41. Call "%SystemRoot%\System32\UsrLogon.Cmd
  42. :Cont2
  43. Rem �]�w RootDrive �n�����X
  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"