windows-nt/Source/XPSP1/NT/termsrv/admtools/appcmpt/jpn/wxgusr.cmd

113 lines
4 KiB
Batchfile
Raw Normal View History

2020-09-26 03:20:57 -05:00
@echo off
Rem #########################################################################
Rem
Rem WXG <20>̃C<CC83><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>p<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><E693BE><EFBFBD>܂<EFBFBD><DC82>B
Rem
..\ACRegL %Temp%\wxg.Cmd WXG_Path "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WXGIME.IME" "wxgdir" ""
If Not ErrorLevel 1 Goto Cont0
Echo.
Echo <20><><EFBFBD>W<EFBFBD>X<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WXG <20>̃C<CC83><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>p<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82><EFBFBD><EFBFBD>ł<EFBFBD><C582><EFBFBD><EFBFBD>B
Echo WXG <20><><EFBFBD>C<EFBFBD><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD>Ƃ<EFBFBD><C682>m<EFBFBD>F<EFBFBD><46><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
Echo.
Pause
Goto Done
:Cont0
Call %Temp%\wxg.Cmd
Del %Temp%\wxg.Cmd >Nul: 2>&1
Rem #########################################################################
Rem
Rem <20><><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>̃C<CC83><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>p<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><E693BE><EFBFBD>܂<EFBFBD><DC82>B
Rem
..\ACRegL %Temp%\wxg.Cmd DIC_Path "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WXGIME.IME" "dicdir" ""
If Not ErrorLevel 1 Goto Cont1
Echo.
Echo <20><><EFBFBD>W<EFBFBD>X<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WXG <20>̃C<CC83><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>p<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82><EFBFBD><EFBFBD>ł<EFBFBD><C582><EFBFBD><EFBFBD>B
Echo WXG <20><><EFBFBD>C<EFBFBD><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD>Ƃ<EFBFBD><C682>m<EFBFBD>F<EFBFBD><46><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
Echo.
Pause
Goto Done
:Cont1
Call %Temp%\wxg.Cmd
Del %Temp%\wxg.Cmd >Nul: 2>&1
Rem #########################################################################
Rem
Rem <20><><EFBFBD>[<5B>U<EFBFBD>[<5B>̃z<CC83>[<5B><> <20>f<EFBFBD>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>ɃA<C983>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ŗL<C597>̃f<CC83>[<5B>^
Rem <20>̃f<CC83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EC90AC><EFBFBD>܂<EFBFBD><DC82>B
Rem
call TsMkUDir "%RootDrive%\WXG"
Rem #########################################################################
Rem
Rem <20><><EFBFBD>[<5B>U<EFBFBD>[<5B>̃z<CC83>[<5B><> <20>f<EFBFBD>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>Ɏ<EFBFBD><C98E><EFBFBD><EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>s<EFBFBD>[<5B><><EFBFBD>܂<EFBFBD><DC82>B
Rem
if exist %RootDrive%\WXG\wxgu.gdj goto Skip1
if exist "%DIC_Path%"\wxgu.gdj copy "%DIC_Path%"\wxgu.gdj %RootDrive%\WXG\wxgu.gdj
:Skip1
if exist %RootDrive%\WXG\wxgurev.gdj goto skip2
if exist "%DIC_Path%"\wxgurev.gdj copy "%DIC_Path%"\wxgurev.gdj %RootDrive%\WXG\wxgurev.gdj
:skip2
if exist %RootDrive%\WXG\wxg.gds goto skip3
if exist "%DIC_Path%"\wxg.gds copy "%DIC_Path%"\wxg.gds %RootDrive%\WXG\wxg.gds
:skip3
if exist %RootDrive%\WXG\wxgrev.gds goto skip4
if exist "%DIC_Path%"\wxgrev.gds copy "%DIC_Path%"\wxgrev.gds %RootDrive%\WXG\wxgrev.gds
:skip4
if exist %RootDrive%\WXG\wxgsei.gds goto skip5
if exist "%DIC_Path%"\wxgsei.gds copy "%DIC_Path%"\wxgsei.gds %RootDrive%\WXG\wxgsei.gds
:skip5
if exist %RootDrive%\WXG\wxgurl.gds goto skip6
if exist "%DIC_Path%"\wxgurl.gds copy "%DIC_Path%"\wxgurl.gds %RootDrive%\WXG\wxgurl.gds
:skip6
if exist "%WXG_Path%"\"%USERDOMAIN%%USERNAME%%.gst" goto skip7
if exist "%WXG_Path%"\wxg2.gst copy "%WXG_Path%"\wxg2.gst "%WXG_Path%"\"%USERDOMAIN%%USERNAME%.gst"
if exist "%WXG_Path%"\wxg3.gst copy "%WXG_Path%"\wxg3.gst "%WXG_Path%"\"%USERDOMAIN%%USERNAME%.gst"
if exist "%WXG_Path%"\wxg4.gst copy "%WXG_Path%"\wxg4.gst "%WXG_Path%"\"%USERDOMAIN%%USERNAME%.gst"
Rem #########################################################################
Rem
Rem <20>X<EFBFBD>^<5E>C<EFBFBD><43> <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>̃A<CC83>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD><74> <20>R<EFBFBD><52><EFBFBD>g<EFBFBD><67><EFBFBD>[<5B><><EFBFBD>ɕύX<CF8D><58><EFBFBD>܂<EFBFBD><DC82>B
Rem
cacls "%WXG_Path%"\%USERDOMAIN%%USERNAME%.gst /E /P %userdomain%\%username%:F > Nul: 2>&1
:skip7
Rem #########################################################################
Rem
Rem <20><><EFBFBD>W<EFBFBD>X<EFBFBD>g<EFBFBD><67> <20>L<EFBFBD>[<5B><><EFBFBD>ύX<CF8D><58><EFBFBD>āA<C481>p<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>[<5B>U<EFBFBD>[<5B>ŗL<C597>̃f<CC83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67>
Rem <20><><EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><C982>܂<EFBFBD><DC82>B
Rem
if exist %RootDrive%\wxg\wxgusr.key goto skip8
copy "%systemroot%\Application Compatibility Scripts\logon\Template\wxgusr.key" %RootDrive%\wxg\wxgusr.key > nul:
echo HKEY_CURRENT_USER\Software\Aisoft\WXG\Dic set>> %RootDrive%\wxg\wxgusr.key
echo Current file = %RootDrive%\WXG\Wxg.gds>> %RootDrive%\wxg\wxgusr.key
echo file0 = %RootDrive%\WXG\Wxg.gds>> %RootDrive%\wxg\wxgusr.key
echo file1 = %RootDrive%\WXG\Wxgsei.gds>> %RootDrive%\wxg\wxgusr.key
echo file2 = %RootDrive%\WXG\Wxgurl.gds>> %RootDrive%\wxg\wxgusr.key
echo file4 = %RootDrive%\WXG\Wxgrev.gds>> %RootDrive%\wxg\wxgusr.key
echo HKEY_CURRENT_USER\Software\Aisoft\WXG\Revdic set>> %RootDrive%\wxg\wxgusr.key
echo Current file = %RootDrive%\WXG\Wxgrev.gds>> %RootDrive%\wxg\wxgusr.key
echo HKEY_CURRENT_USER\Software\Aisoft\WXG\Style\%USERDOMAIN%%USERNAME%>> %RootDrive%\wxg\wxgusr.key
echo HKEY_CURRENT_USER\Software\Aisoft\WXG>> %RootDrive%\wxg\wxgusr.key
echo Style = %USERDOMAIN%%USERNAME%>> %RootDrive%\wxg\wxgusr.key
regini %RootDrive%\wxg\wxgusr.key > nul:
:skip8
:Done