windows-nt/Source/XPSP1/NT/termsrv/admtools/appcmpt/cht/ofc43usr.cmd

74 lines
1.9 KiB
Batchfile
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
@Echo off
Rem
Rem <20>b<EFBFBD>ϥΪ̥D<CCA5>ؿ<EFBFBD><D8BF><EFBFBD><EFBFBD>إ<EFBFBD><D8A5><EFBFBD><EFBFBD>ε{<7B><><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD>
Rem <20>Ҧb<D2A6>ؿ<EFBFBD><D8BF>C
Rem
call TsMkUDir "%RootDrive%\Office43"
call TsMkUDir "%RootDrive%\Office43\Access"
call TsMkUDir "%RootDrive%\Office43\Winword"
Rem <20>R<EFBFBD><52> Normal.dot <20><> Winword.opt (<28>p<EFBFBD>G<EFBFBD>o<EFBFBD>ǥؿ<C7A5><D8BF>s<EFBFBD>b<EFBFBD><62><EFBFBD><EFBFBD>)
If Not Exist "#OFC43INST#\Winword\Normal.dot" Goto cont0
Del /F /Q "#OFC43INST#\Winword\Normal.dot" > NUL: 2>&1
:cont0
If Not Exist "#OFC43INST#\Winword\Winword.opt" Goto cont1
Del /F /Q "#OFC43INST#\Winword\Winword.opt" > NUL: 2>&1
:cont1
Rem
Rem <20>q Access <20><><EFBFBD>F<EFBFBD>ƻs<C6BB>ɮסC
Rem
If Exist "%RootDrive%\Office43\Access\wztable.mda" Goto skip1
If Not Exist "#OFC43INST#\Access\wztable.mda" Goto skip1
copy "#OFC43INST#\Access\wztable.mda" "%RootDrive%\Office43\Access\" > NUL: 2>&1
:skip1
If Exist "%RootDrive%\Office43\Access\wzlib.mda" Goto skip2
If Not Exist "#OFC43INST#\Access\wzlib.mda" Goto skip2
copy "#OFC43INST#\Access\wzlib.mda" "%RootDrive%\Office43\Access\" > NUL: 2>&1
:skip2
If Exist "%RootDrive%\Office43\Access\wzbldr.mda" Goto skip3
If Not Exist "#OFC43INST#\Access\wzbldr.mda" Goto skip3
copy "#OFC43INST#\Access\wzbldr.mda" "%RootDrive%\Office43\Access\" > NUL: 2>&1
:skip3
Rem
Rem <20><><EFBFBD>C<EFBFBD>ӨϥΪ̽ƻs<C6BB>ۭq<DBAD>ؿ<EFBFBD><D8BF>C
Rem
If Exist "%RootDrive%\Office43\Custom.dic" Goto skip4
If Not Exist "%SystemRoot%\Msapps\Proof\Custom.dic" Goto skip4
copy "%SystemRoot%\Msapps\Proof\Custom.dic" "%RootDrive%\Office43" > NUL: 2>&1
:skip4
Rem
Rem <20>N Access <20><EFBFBD>ɮ׽ƻs<C6BB><73><EFBFBD>ϥΪ̪<CEAA> office <20>ؿ<EFBFBD><D8BF>C
Rem
If Exist "%RootDrive%\Office43\Access\System.mda" Goto skip5
If Not Exist "#OFC43INST#\Access\System.mda" Goto skip5
copy "#OFC43INST#\Access\System.mda" "%RootDrive%\Office43\Access\" > NUL: 2>&1
:skip5
Rem
Rem <20>Ǽ<EFBFBD><C7BC>n<EFBFBD><6E><EFBFBD><EFBFBD><EFBFBD>X<EFBFBD>C<EFBFBD>n<EFBFBD><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD>k<EFBFBD>M<EFBFBD>ΡC
If Exist "%RootDrive%\Windows\Ofc43usr.dmy" Goto skip6
regini ofc43usr.key > NUL:
copy NUL: "%RootDrive%\Windows\Ofc43usr.dmy" > NUL: 2>&1
attrib +h "%RootDrive%\Windows\Ofc43usr.dmy" > NUL: 2>&1
:skip6