Leaked source code of windows server 2003
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.

218 lines
8.0 KiB

  1. @Echo Off
  2. Rem #########################################################################
  3. Rem
  4. Rem %RootDrive% ���\�������Ă��̃X�N���v�g�p�ɐݒ肳���Ă��邱�Ƃ��m�F���܂��B
  5. Rem
  6. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  7. If "%_CHKROOT%" == "FAIL" Goto Done
  8. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  9. If "%_SETPATHS%" == "FAIL" Goto Done
  10. Rem #########################################################################
  11. Rem
  12. Rem SSuite97.Cmd �����łɎ��s�����Ă����ꍇ�͏����𒆒f���܂��B
  13. Rem
  14. If Not Exist "%COMMON_STARTUP%\SS97Usr.Cmd" Goto Cont0
  15. Echo.
  16. Echo ���ł� SSuite97.Cmd �����s�����Ă��܂��B
  17. Echo.
  18. Echo ���[�^�X �X�[�p�[�I�t�B�X �̃}���`���[�U�[ �A�v���P�[�V�����‹��ݒ肪
  19. Echo ���f�����܂����B
  20. Echo.
  21. Pause
  22. Goto Done
  23. :Cont0
  24. Rem #########################################################################
  25. Rem
  26. Rem ���[�^�X �X�[�p�[�I�t�B�X �̃C���X�g�[�������Ă����p�X���擾���܂��B
  27. Rem
  28. ..\ACRegL "%Temp%\lotso.Cmd" LOTSOINS "HKCU\Software\Lotus\Components" "User Path" STRIPCHAR\2
  29. If Not ErrorLevel 1 Goto Cont1
  30. Echo.
  31. Echo ���W�X�g������ ���[�^�X �X�[�p�[�I�t�B�X �̃C���X�g�[�������Ă���
  32. Echo �p�X���擾�ł��܂����ł����B
  33. Echo ���[�^�X �X�[�p�[�I�t�B�X ���C���X�g�[�������Ă��邱�Ƃ��m�F����
  34. Echo ���������B
  35. Echo.
  36. Pause
  37. Goto Done
  38. :Cont1
  39. Call "%Temp%\lotso.Cmd"
  40. Del "%Temp%\lotso.Cmd" > Nul: 2>&1
  41. Rem #########################################################################
  42. Rem
  43. Rem LotsoUsr.Cmd �����‚����Ȃ��ꍇ�͏����𒆒f���܂��B
  44. Rem
  45. If Exist ..\Logon\LotsoUsr.Cmd Goto Cont2
  46. Echo.
  47. Echo LotsoUsr.Cmd ���ȉ��̃t�H���_�Ɍ��‚����܂����B
  48. Echo %Systemroot%\Application Compatibility Scripts\Logon.
  49. Echo.
  50. Echo ���[�^�X �X�[�p�[�I�t�B�X �̃}���`���[�U�[ �A�v���P�[�V�����‹��ݒ肪
  51. Echo ���f�����܂����B
  52. Echo.
  53. Pause
  54. Goto Done
  55. :Cont2
  56. Rem #########################################################################
  57. Rem
  58. Rem ���[�^�X ���[�h�v�� �̃C���X�g�[�������Ă����p�X���擾���܂��B
  59. Rem
  60. ..\ACRegL "%Temp%\wordpro.Cmd" WP "HKLM\Software\Lotus\Wordpro\98.0" "Path" ""
  61. If ErrorLevel 1 Goto Cont3
  62. Call "%Temp%\wordpro.Cmd"
  63. Del "%Temp%\wordpro.Cmd" >Nul: 2>&1
  64. :Cont3
  65. Rem #########################################################################
  66. Rem
  67. Rem LotsoUsr.cmd �� UsrLogn2.Cmd �X�N���v�g�ɒlj����܂��B
  68. Rem
  69. FindStr /I LotsoUsr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  70. If Not ErrorLevel 1 Goto Cont4
  71. Echo Call LotsoUsr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  72. :Cont4
  73. Rem #########################################################################
  74. Rem
  75. Rem �X�[�p�[�I�t�B�X �����s�ł����悤�� ���W�X�g���̃A�N�Z�X�����ύX���܂��B
  76. Rem
  77. regini lotso.key > Nul:
  78. Rem #########################################################################
  79. Rem
  80. Rem ���[�^�X ���[�h�v�� ���C���X�g�[�������Ă��Ȃ��ꍇ�͎��̏������X�L�b�v���܂��B
  81. Rem
  82. If "%WP%A" == "A" Goto Cont5
  83. Rem #########################################################################
  84. Rem
  85. Rem ���̃t�@�C���Œ��`�����Ă��� ���W�X�g�� �L�[���o�^���܂��B���[�h�v�����o�^��
  86. Rem �X�L�b�v���邱�Ƃ������܂��B
  87. set List="%WP%\lwp.reg" "%WP%\lwplabel.reg" "%WP%\lwptls.reg"
  88. regedit /s %List%
  89. :Cont5
  90. Rem #########################################################################
  91. Rem
  92. Rem ���[�U�[�̃��W�X�g�� �L�[���X�V���邽�߂̃��W�X�g�� �t�@�C�����쐬���܂��B
  93. Rem
  94. Rem #########################################################################
  95. Rem
  96. Rem ���[�^�X �X�[�p�[�I�t�B�X�̃��W�X�g�����t�@�C���ɏ����o���܂��B
  97. Rem
  98. Regedit /a lotso.tmp HKEY_CURRENT_USER\Software\Lotus
  99. Rem #########################################################################
  100. Rem
  101. Rem �����o�����t�@�C�������A�p�X���ύX�����K�v�̂��镔���𒊏o���܂��B
  102. Rem
  103. Echo Windows Registry Editor Version 5.00 >lotso.tmp2
  104. Echo.>>lotso.tmp2
  105. findstr /i \[HKEY_CURRENT_USER\\Software\\Lotus\\123\\.*\\Paths\\Work\] lotso.tmp >>lotso.tmp2
  106. findstr /i \"JA\".*\\\\Work\\\\123\\\\ lotso.tmp >>lotso.tmp2
  107. Echo.>>lotso.tmp2
  108. findstr /i \[HKEY_CURRENT_USER\\Software\\Lotus\\123\\.*\\Paths\\AutoOpen\] lotso.tmp >>lotso.tmp2
  109. Echo @="%RootDrive%\\Lotus\\Work\\123\\Auto\\" >>lotso.tmp2
  110. Echo.>>lotso.tmp2
  111. findstr /i \[HKEY_CURRENT_USER\\Software\\Lotus\\Approach\\.*\\Paths\\Work\] lotso.tmp >>lotso.tmp2
  112. findstr /i \"JA\".*\\\\work\\\\approach\\\\ lotso.tmp >>lotso.tmp2
  113. Echo.>>lotso.tmp2
  114. findstr /i /r /c:"\[HKEY_CURRENT_USER\\Software\\Lotus\\Freelance\\.*\\Freelance Graphics\]" lotso.tmp >>lotso.tmp2
  115. findstr /i /r /c:"\"Working Directory\".*\\\\work\\\\flg\\\\" lotso.tmp >>lotso.tmp2
  116. findstr /i /r /c:"\"Backup Directory\".*\\\\backup\\\\flg\\\\" lotso.tmp >>lotso.tmp2
  117. Echo "User Dictionary"="%RootDrive%\\Lotus\\compnent\\spell\\ltsuser1.udc">>lotso.tmp2
  118. Echo.>>lotso.tmp2
  119. findstr /i \[HKEY_CURRENT_USER\\Software\\Lotus\\Organizer\\.*\\Paths\] lotso.tmp >>lotso.tmp2
  120. findstr /i \"OrganizerFiles\".*\\\\work\\\\organize lotso.tmp >>lotso.tmp2
  121. findstr /i \"Backup\".*\\\\backup\\\\organize lotso.tmp >>lotso.tmp2
  122. Echo.>>lotso.tmp2
  123. findstr /i \[HKEY_CURRENT_USER\\Software\\Lotus\\WordPro\\.*\\Paths\\Backup\] lotso.tmp >>lotso.tmp2
  124. findstr /i \"JA\".*\\\\backup\\\\wordpro\\\\ lotso.tmp >>lotso.tmp2
  125. Echo. >>lotso.tmp2
  126. findstr /i \[HKEY_CURRENT_USER\\Software\\Lotus\\WordPro\\.*\\Paths\\Work\] lotso.tmp >>lotso.tmp2
  127. findstr /i \"JA\".*\\\\work\\\\wordpro\\\\ lotso.tmp >>lotso.tmp2
  128. Echo.>>lotso.tmp2
  129. findstr /i \[HKEY_CURRENT_USER\\Software\\Lotus\\Components\\Spell\\.*\] lotso.tmp >>lotso.tmp2
  130. Echo "Multi User Path"="%RootDrive%\\Lotus\\compnent\\spell\\">>lotso.tmp2
  131. Echo "UserDictionaryFiles"="ltsuser1.udc">>lotso.tmp2
  132. Echo.>>lotso.tmp2
  133. Echo [HKEY_CURRENT_USER\Software\Lotus\Components\Spell\4.0]>>lotso.tmp2
  134. Echo "Multi User Path"="%RootDrive%\\Lotus\\compnent\\spell\\">>lotso.tmp2
  135. Echo "UserDictionaryFiles"="ltsuser1.udc">>lotso.tmp2
  136. Echo.>>lotso.tmp2
  137. findstr /i \[HKEY_CURRENT_USER\\Software\\Lotus\\SuiteStart\\[0-9][0-9]\.[0-9]\] lotso.tmp >>lotso.tmp2
  138. Echo "Configure"=dword:00000001>>lotso.tmp2
  139. Echo.>>lotso.tmp2
  140. findstr /i \[HKEY_CURRENT_USER\\Software\\Lotus\\SmartCenter\\[0-9][0-9]\.[0-9]\] lotso.tmp >>lotso.tmp2
  141. Echo "Configure"=dword:00000001>>lotso.tmp2
  142. Echo.>>lotso.tmp2
  143. findstr /i \[HKEY_CURRENT_USER\\Software\\Lotus\\SmartCenter\\.*\\Paths\\Work\] lotso.tmp >>lotso.tmp2
  144. findstr /i JA\".*\\\\Work\\\\SmartCtr\" lotso.tmp >>lotso.tmp2
  145. Echo.>>lotso.tmp2
  146. findstr /i /r /c:"\[HKEY_CURRENT_USER\\Software\\Lotus\\FastSite\\.*\\Paths\]" lotso.tmp >>lotso.tmp2
  147. findstr /i /r /c:"\"Work Directory\".*\\\\work\\\\fastsite\\\\" lotso.tmp >>lotso.tmp2
  148. Rem #########################################################################
  149. Rem
  150. Rem �p�X���ύX���܂��B
  151. Rem
  152. echo %LOTSOINS%> lotso.tmp3
  153. ..\acsr "\\" "\\\\" lotso.tmp3 lotso.tmp4
  154. for /f "tokens=*" %%i in ( 'type lotso.tmp4' ) do set LOTSOINST=%%i
  155. ..\acsr "%LOTSOINST%" "%RootDrive%\\lotus" lotso.tmp2 ..\Logon\LotsoUsr.reg
  156. Del lotso.tmp >Nul: 2>&1
  157. Del lotso.tmp2 >Nul: 2>&1
  158. Del lotso.tmp3 >Nul: 2>&1
  159. Del lotso.tmp4 >Nul: 2>&1
  160. Rem #########################################################################
  161. Rem
  162. Rem ���ׂẴ��[�U�[�p�̃X�^�[�g�A�b�v ���j���[���烆�[�U�[��
  163. Rem �z�[�� �f�B���N�g���ɃV���[�g�J�b�g �t�@�C�����ړ����܂��B
  164. Rem
  165. If Exist "%COMMON_STARTUP%\���Ľ��� 97.lnk" Move "%COMMON_STARTUP%\���Ľ��� 97.lnk" "%LOTSOINS%" >Nul: 2>&1
  166. If Exist "%COMMON_STARTUP%\�ϰľ��� 97.lnk" Move "%COMMON_STARTUP%\�ϰľ��� 97.lnk" "%LOTSOINS%" >Nul: 2>&1
  167. If Exist "%COMMON_STARTUP%\�X�C�[�g�X�^�[�g 2000.lnk" Move "%COMMON_STARTUP%\�X�C�[�g�X�^�[�g 2000.lnk" "%LOTSOINS%" >Nul: 2>&1
  168. If Exist "%COMMON_STARTUP%\�X�}�[�g�Z���^�[ 2000.lnk" Move "%COMMON_STARTUP%\�X�}�[�g�Z���^�[ 2000.lnk" "%LOTSOINS%" >Nul: 2>&1
  169. Rem #########################################################################
  170. Echo.
  171. Echo ���[�^�X �X�[�p�[�I�t�B�X �������ɍ쓮���邽�߂ɂ́A���݃��O�I��
  172. Echo ���Ă��郆�[�U�[�̓A�v���P�[�V���������s�����O�ɁA�������񃍃O�I�t
  173. Echo ���Ă����ēx���O�I�������K�v�������܂��B
  174. Echo.
  175. Echo ���[�^�X �X�[�p�[�I�t�B�X �̃}���`���[�U�[ �A�v���P�[�V�����‹��ݒ肪
  176. Echo �������܂����B
  177. Pause
  178. :Done