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.

60 lines
2.2 KiB

  1. REM ###############################################################
  2. REM # #
  3. REM # SetPaths #
  4. REM # #
  5. REM # ���X�U�C���|�é��J�����ܼƤ��A #
  6. REM # �����O�ɤ��ݨt�θ��|�r���N�i�����C #
  7. REM # �o�������O�ɤ��ݨ̾a�t�λy���Ӱ����C #
  8. REM # #
  9. REM # #
  10. REM # All Users:Startup COMMON_STARTUP #
  11. REM # All Users:Start Menu COMMON_START_MENU #
  12. REM # All Users:Start Menu\Programs COMMON_PROGRAMS #
  13. REM # Current User:Start Menu USER_START_MENU #
  14. REM # Current User:Startup USER_STARTUP #
  15. REM # Current User:Start Menu\Programs USER_PROGRAMS #
  16. REM # Current User:My Documents MY_DOCUMENTS #
  17. REM # Current User:Templates TEMPLATES #
  18. REM # Current User:Application Data APP_DATA
  19. REM # #
  20. REM ###############################################################
  21. REM ###############################################################
  22. REM # �ϥ� GETPATHS �ﶵ�ӳ]�w�Ҧ������ܼ�
  23. REM ###############################################################
  24. "%systemroot%\Application Compatibility Scripts\ACRegL.exe" "%TEMP%\getpaths.cmd" COMMON_PATHS "HKLM\Software" "" GETPATHS
  25. If Not ErrorLevel 1 Goto Cont1
  26. Echo.
  27. Echo �L�k�������ΩΨϥΪ̸��|�C
  28. Echo.
  29. Goto Failure
  30. :Cont1
  31. Call "%TEMP%\getpaths.cmd"
  32. Del "%TEMP%\getpaths.cmd" >Nul: 2>&1
  33. REM �p�G�U�C�ȥ��T�A�ާ@�|���\�C
  34. REM COMMON_START_MENU = %COMMON_START_MENU%
  35. REM COMMON_STARTUP = %COMMON_STARTUP%
  36. REM COMMON_PROGRAMS = %COMMON_PROGRAMS%
  37. REM USER_START_MENU = %USER_START_MENU%
  38. REM USER_STARTUP = %USER_STARTUP%
  39. REM USER_PROGRAMS = %USER_PROGRAMS%
  40. REM MY_DOCUMENTS = %MY_DOCUMENTS%
  41. REM TEMPLATES = %TEMPLATES%
  42. REM APP_DATA= %APP_DATA%
  43. Set _SetPaths=SUCCEED
  44. Goto Done
  45. :Failure
  46. Echo.
  47. Echo �Y�Ǥ��ΩΨϥΪ̸��|���d�ߤw����!
  48. Echo �̿��o�ӫ��O�ɨӰ��檺���ε{���i���L�k���\�w�ˡC
  49. Echo �иѨM�o�Ӱ��D�A�í��դ@���C
  50. Echo.
  51. Set _SetPaths=FAIL
  52. REM Pause
  53. Goto Done
  54. :Done