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.

50 lines
998 B

  1. @Echo Off
  2. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  3. If "%_SETPATHS%" == "FAIL" Goto Done
  4. Rem
  5. Rem �������Բ���Ҫ RootDrive ����Щ�ű��ġ�
  6. Rem
  7. If Not Exist "%SystemRoot%\System32\Usrlogn1.cmd" Goto cont0
  8. Cd /d "%SystemRoot%\Application Compatibility Scripts\Logon"
  9. Call "%SystemRoot%\System32\Usrlogn1.cmd"
  10. :cont0
  11. Rem
  12. Rem �����û�����Ŀ¼�������š�����û��
  13. Rem ���ã����˳���
  14. Rem
  15. Cd /d %SystemRoot%\"Application Compatibility Scripts"
  16. Call RootDrv.Cmd
  17. If "A%RootDrive%A" == "AA" End.Cmd
  18. Rem
  19. Rem ���û�����Ŀ¼ӳ�䵽��������
  20. Rem
  21. Net Use %RootDrive% /D >NUL: 2>&1
  22. Subst %RootDrive% "%HomeDrive%%HomePath%"
  23. if ERRORLEVEL 1 goto SubstErr
  24. goto AfterSubst
  25. :SubstErr
  26. Subst %RootDrive% /d >NUL: 2>&1
  27. Subst %RootDrive% "%HomeDrive%%HomePath%"
  28. :AfterSubst
  29. Rem
  30. Rem ����ÿ��Ӧ�ó����ű������а�װ�ű�ʱ��
  31. Rem Ӧ�ó����ű����Զ����ӵ� UsrLogn2.Cmd��
  32. Rem
  33. If Not Exist %SystemRoot%\System32\UsrLogn2.Cmd Goto Cont1
  34. Cd Logon
  35. Call %SystemRoot%\System32\UsrLogn2.Cmd
  36. :Cont1
  37. :Done