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
1.1 KiB

  1. @Echo Off
  2. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  3. If "%_SETPATHS%" == "FAIL" Goto Done
  4. Rem
  5. Rem This is for those scripts that don't need the 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 Determine the user's home directory drive letter. If this isn't
  13. Rem set, exit.
  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 Map the User's Home Directory to a Drive Letter
  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 Invoke each Application Script. Application Scripts are automatically
  31. Rem added to UsrLogn2.Cmd when the Installation script is run.
  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