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.
|
|
@echo off
Rem #########################################################################
Rem Rem �b�ϥΪ̥D�ؿ����إߦs�����ε{�����w Rem ���ƪ��ؿ��C Rem
call TsMkUDir "%RootDrive%\Office95"
Rem #########################################################################
Rem �ˬd�O�_�o�ӫ��O�ɬO�b Alpha �W�����C�p�G�O�A�N�]�w�A�����@�Τu���C rem rem Set __SharedTools=Shared Tools If Not "%PROCESSOR_ARCHITECTURE%"=="ALPHA" goto acsrCont1 If Not Exist "%ProgramFiles(x86)%" goto acsrCont1 Set __SharedTools=Shared Tools (x86) :acsrCont1
Rem #########################################################################
Rem Rem �b�ϥΪ̥ؿ����إ� Custom.dic �ɮסC Rem
If Not Exist "%RootDrive%\Office95\Custom.Dic" Copy Nul: "%RootDrive%\Office95\Custom.Dic" >Nul: 2>&1
Rem #########################################################################
REM REM ���o�ؿ��W�٤θ��|�C REM
..\ACRegL "%Temp%\Proj95_1.Cmd" DictPath "HKLM\Software\Microsoft\%__SharedTools%\Proofing Tools\Spelling\1033\Normal" "Dictionary" "StripChar\1" If ErrorLevel 1 Goto Done Call %Temp%\Proj95_1.Cmd Del %Temp%\Proj95_1.Cmd >Nul: 2>&1
..\ACRegL "%Temp%\Proj95_3.Cmd" DictName "HKLM\Software\Microsoft\%__SharedTools%\Proofing Tools\Spelling\1033\Normal" "Dictionary" "StripPath" If ErrorLevel 1 Goto Done Call %Temp%\Proj95_3.Cmd Del %Temp%\Proj95_3.Cmd >Nul: 2>&1
Rem #########################################################################
REM REM �p�G���|���n���]�w�ܧ��í��]�A REM �ӥB�S�w�˨��L�� MS Office ���γn�骺�ܡA REM �o�i���|�o�͡C
If "%DictPath%"=="%RootDrive%\Office95" Goto GetDictionary
..\ACRegL "%Temp%\Proj95_2.Cmd" Dictionary "HKLM\Software\Microsoft\%__SharedTools%\Proofing Tools\Spelling\1033\Normal" "Dictionary" "" If ErrorLevel 1 Goto Done Call %Temp%\Proj95_2.Cmd Del %Temp%\Proj95_2.Cmd >Nul: 2>&1
REM �������ӨϥΪ̦P�ɨϥγo�ӵ{���X�C REM �o�|�����ϥΪ� A �b�ϥΪ� B ���� DictPath �� REM �ܧC ..\ACRegL "%Temp%\Proj95_7.Cmd" OrigDictPath "HKLM\Software\Microsoft\%__SharedTools%\Proofing Tools\Spelling\1033\Normal" "Dictionary" "StripChar\1" If ErrorLevel 1 Goto Done Call %Temp%\Proj95_7.Cmd Del %Temp%\Proj95_7.Cmd >Nul: 2>&1 if "%OrigDictPath%"=="%RootDrive%\Office95" Goto GetDictionary
..\acsr "#DICTNAME#" "%DictName%" Template\prj95Usr.key %Temp%\Proj95_4.tmp ..\acsr "#ROOTDRIVE#" "%RootDrive%" %Temp%\Proj95_4.tmp %Temp%\Proj95_5.tmp ..\acsr "#DICTIONARY#" "%Dictionary%" %Temp%\Proj95_5.tmp %Temp%\Proj95_6.tmp ..\acsr "#__SharedTools#" "%__SharedTools%" %Temp%\Proj95_6.tmp %Temp%\Prj95Usr.Key
Rem �ܧ��n�����X�A�N���|���V�ϥΪ̩ҫ��w���ؿ��C regini %Temp%\prj95Usr.key > Nul:
Del %Temp%\Proj95_4.tmp >Nul: 2>&1 Del %Temp%\Proj95_5.tmp >Nul: 2>&1 Del %Temp%\Proj95_6.tmp >Nul: 2>&1 Del %Temp%\prj95Usr.key >Nul: 2>&1
goto CopyDictionary
Rem #########################################################################
REM REM �p�G�ؿ����g�å��ܧ��A�N�q�n�������� REM ���l�W�٤θ��|�C REM
:GetDictionary
..\ACRegL "%Temp%\Proj95_6.Cmd" Dictionary "HKLM\Software\Microsoft\%__SharedTools%\Proofing Tools\Spelling\1033\Normal" "OrigDictionary" "" If ErrorLevel 1 Goto SpellError
Call %Temp%\Proj95_6.Cmd Del %Temp%\Proj95_6.Cmd >Nul: 2>&1
Rem #########################################################################
REM REM �N�ؿ��ƻs���ϥΪ̥ؿ��C REM
:CopyDictionary
If Exist "%RootDrive%\Office95\%DictName%" goto Cont1 If Not Exist "%Dictionary%" goto Cont1 Copy "%Dictionary%" "%RootDrive%\Office95\%DictName%" >Nul: 2>&1
:Cont1
:Done
|