119 lines
3.4 KiB
Batchfile
119 lines
3.4 KiB
Batchfile
|
@echo off
|
|||
|
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20><><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>Ŀ¼<C4BF><C2BC>ΪӦ<CEAA>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
Rem <20><><EFBFBD><EFBFBD>Ŀ¼<C4BF><C2BC>
|
|||
|
Rem
|
|||
|
|
|||
|
call TsMkUDir "%RootDrive%\Office95"
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD><C5B1>Ƿ<EFBFBD><C7B7><EFBFBD> Alpha <20><><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǣ<EFBFBD><C7A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
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 <20><><EFBFBD>û<EFBFBD>Ŀ¼<C4BF>д<EFBFBD><D0B4><EFBFBD> Custom.dic <20>ļ<EFBFBD>
|
|||
|
Rem
|
|||
|
|
|||
|
If Not Exist "%RootDrive%\Office95\Custom.Dic" Copy Nul: "%RootDrive%\Office95\Custom.Dic" >Nul: 2>&1
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
REM
|
|||
|
REM <20><>ȡ<EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD>ƺ<EFBFBD>·<EFBFBD><C2B7>
|
|||
|
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 <20><><EFBFBD><EFBFBD>·<EFBFBD><C2B7><EFBFBD><EFBFBD>ע<EFBFBD><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѹı䣬<C4B1><E4A3AC><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>á<EFBFBD>
|
|||
|
REM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>װ<EFBFBD><D7B0><EFBFBD><EFBFBD>һ<EFBFBD><D2BB> MS Office Ӧ<>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܷ<EFBFBD><DCB7><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
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 <20><>ֹ<EFBFBD><D6B9><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>ͬʱ<CDAC><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
REM <20><><EFBFBD><EFBFBD>ֹ<EFBFBD>û<EFBFBD> A <20><><EFBFBD>û<EFBFBD> B <20><><EFBFBD><EFBFBD> DictPath <20><>
|
|||
|
REM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>иĶ<D0B8><C4B6><EFBFBD>
|
|||
|
..\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 <20><><EFBFBD><EFBFBD>ע<EFBFBD><D7A2><EFBFBD><EFBFBD><EFBFBD>ʹ<EEA3AC>ʵ<EFBFBD>·<EFBFBD><C2B7>ָ<EFBFBD><D6B8><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>е<EFBFBD>Ŀ¼<C4BF><C2BC>
|
|||
|
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 <20><><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD>·<EFBFBD><C2B7>û<EFBFBD>иı䣬<C4B1><E4A3AC>ע<EFBFBD><D7A2><EFBFBD><EFBFBD>ץȡԭʼ
|
|||
|
REM <20><><EFBFBD>ƺ<EFBFBD>·<EFBFBD><C2B7><EFBFBD><EFBFBD>
|
|||
|
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 <20><><EFBFBD>ʵ临<CAB5>Ƶ<EFBFBD><C6B5>û<EFBFBD>Ŀ¼<C4BF>С<EFBFBD>
|
|||
|
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
|