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 ���û�����Ŀ¼��ΪӦ�ó����������� Rem ����Ŀ¼�� Rem
call TsMkUDir "%RootDrive%\Office95"
Rem #########################################################################
Rem ���������ű��Ƿ��� Alpha �����С������ǣ��������ʵ��Ĺ������� 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 ���û�Ŀ¼�д��� Custom.dic �ļ� Rem
If Not Exist "%RootDrive%\Office95\Custom.Dic" Copy Nul: "%RootDrive%\Office95\Custom.Dic" >Nul: 2>&1
Rem #########################################################################
REM REM ��ȡ�ʵ����ƺ�·�� 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 ����·����ע���������Ѹı䣬����Ҫ�������á� REM ������װ����һ�� MS Office Ӧ�ó����������������ܷ����� REM
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 ��ֹ�����û�ͬʱ������������ REM ����ֹ�û� A ���û� B ���� DictPath �� REM �������иĶ��� ..\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 ����ע�����ʹ�ʵ�·��ָ���û����е�Ŀ¼�� 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 �����ʵ�·��û�иı䣬��ע����ץȡԭʼ REM ���ƺ�·���� 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 ���ʵ临�Ƶ��û�Ŀ¼�С� 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
|