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.4 KiB

  1. REM ###############################################################
  2. REM # #
  3. REM # SetPaths #
  4. REM # #
  5. REM # ���̃p�X���‹��ϐ��ɓW�J���āA�n�[�h �R�[�h���ꂽ�V�X�e�� #
  6. REM # �p�X�̕��������g�킸�ɃX�N���v�g�����s�ł����悤�ɂ��܂��B #
  7. REM # �����ɂ����V�X�e���̌����Ɉˑ����邱�ƂȂ��X�N���v�g�����s #
  8. REM # �ł����悤�ɂȂ��܂��B #
  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 �I�v�V�������g���āA���ׂĂ̊‹��ϐ����ݒ肵�܂��B
  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 ���ʃp�X�܂��̓��[�U�[�p�X���擾�ł��܂����B
  28. Echo.
  29. Goto Failure
  30. :Cont1
  31. Call "%TEMP%\getpaths.cmd"
  32. Del "%TEMP%\getpaths.cmd" >Nul: 2>&1
  33. REM �ȉ��̒l�����������΁A���s�͐����������ƂɂȂ��܂��B
  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 1 �ˆȏ��̋��ʃp�X�܂��̓��[�U�[ �p�X�̃N�G�������s���܂����B
  48. Echo ���̃X�N���v�g�Ɉˑ����Ă����A�v���P�[�V�����͐������C���X�g�[��
  49. Echo �����Ȃ��ꍇ�������܂��B�������������Ă����Ď��s���Ă��������B
  50. Echo.
  51. Set _SetPaths=FAIL
  52. REM Pause
  53. Goto Done
  54. :Done