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.

118 lines
2.8 KiB

  1. @Echo Off
  2. Rem #########################################################################
  3. Rem
  4. Rem �ˬd CMD Extensions �O�_�w�ҥ�
  5. Rem
  6. if "A%cmdextversion%A" == "AA" (
  7. call cmd /e:on /c eudora4.cmd
  8. ) else (
  9. goto ExtOK
  10. )
  11. goto Done
  12. :ExtOK
  13. Rem #########################################################################
  14. Rem
  15. Rem �ˬd %RootDrive% �O�_�w�]�w�A�ñN���]�w�����O�ɡC
  16. Rem
  17. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  18. If "%_CHKROOT%" == "FAIL" Goto Done
  19. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  20. If "%_SETPATHS%" == "FAIL" Goto Done
  21. Rem #########################################################################
  22. Rem �q�n���ɨ��o Eudora ���O�C�C
  23. ..\ACRegL "%Temp%\EPro4.Cmd" EUDTMP "HKCU\Software\Qualcomm\Eudora\CommandLine" "Current" "STRIPCHAR:1"
  24. If Not ErrorLevel 1 Goto Cont1
  25. Echo.
  26. Echo �L�k�q�n���ɧ��� Eudora Pro 4.0 ���O�C�C
  27. Echo ���ˬd Eudora Pro 4.0 �O�_�w�w�ˡA�í��s
  28. Echo �����o�ӫ��O�ɡC
  29. Echo.
  30. Pause
  31. Goto Done
  32. :Cont1
  33. Call %Temp%\EPro4.Cmd
  34. Del %Temp%\EPro4.Cmd >Nul: 2>&1
  35. set EudCmd=%EUDTMP:~0,-2%
  36. ..\ACRegL "%Temp%\EPro4.Cmd" EUDTMP "HKCU\Software\Qualcomm\Eudora\CommandLine" "Current" "STRIPCHAR:2"
  37. If Not ErrorLevel 1 Goto Cont2
  38. Echo.
  39. Echo �L�k�q�n���ɧ��� Eudora Pro 4.0 ���O�C�C
  40. Echo ���ˬd Eudora Pro 4.0 �O�_�w�w�ˡA�í��s
  41. Echo �����o�ӫ��O�ɡC
  42. Echo.
  43. Pause
  44. Goto Done
  45. :Cont2
  46. Call %Temp%\EPro4.Cmd
  47. Del %Temp%\EPro4.Cmd >Nul: 2>&1
  48. Set EudoraInstDir=%EUDTMP:~0,-13%
  49. Rem #########################################################################
  50. If Exist "%EudoraInstDir%\descmap.pce" Goto Cont0
  51. Echo.
  52. Echo �b�ϥγo�����ε{���ۮe�ʫ��O�ɤ��e�A�z���������� Eudora 4.0 �@���C
  53. Echo ���� Eudora �����A�Цb Eudora Pro ���Ƨ������s Eudora Pro ���|����
  54. Echo �Ф��e�C�N %RootDrive%\eudora.ini �Ȫ��[���ؼФ��C
  55. Echo %RootDrive%\eudora.ini
  56. Echo �ؼФ��e�ȱN�|�O:
  57. Echo "%EudoraInstDir%\Eudora.exe" %RootDrive%\eudora.ini
  58. Echo.
  59. Pause
  60. Goto Done
  61. :Cont0
  62. Rem
  63. Rem �ܧ��n�����X�A�N���|���V�ϥΪ̫��w��
  64. Rem �ؿ��C
  65. Rem
  66. Rem �p�G�ثe���O�w�˼Ҧ��A�N�ܧ󦨦w�˼Ҧ��C
  67. Set __OrigMode=Install
  68. ChgUsr /query > Nul:
  69. if Not ErrorLevel 101 Goto Begin
  70. Set __OrigMode=Exec
  71. Change User /Install > Nul:
  72. :Begin
  73. ..\acsr "#INSTDIR#" "%EudoraInstDir%" Template\Eudora4.Key Eudora4.tmp
  74. ..\acsr "#ROOTDRIVE#" "%RootDrive%" Eudora4.tmp Eudora4.key
  75. regini eudora4.key > Nul:
  76. del eudora4.tmp
  77. del eudora4.key
  78. Rem �p�G���ӬO�����Ҧ��A�N�ܦ^�����Ҧ��C
  79. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  80. Set __OrigMode=
  81. Rem ���s descmap.pce ���ϥ��v���C
  82. cacls "%EudoraInstDir%\descmap.pce" /E /G "Terminal Server User":R >NUL: 2>&1
  83. Rem #########################################################################
  84. Echo.
  85. Echo ���F�T�O Eudora Pro 4.0 ���A�������A�ثe�n�J��
  86. Echo �ϥΪ̥������n�X�A���s�n�J���A���� Eudora Pro 4.0�C
  87. Echo.
  88. Echo Eudora 4.0 �h�ϥΪ����ε{���վ㧹���C
  89. Pause
  90. :done