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

51 lines
1.6 KiB
Batchfile
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
@echo off
Rem
Rem <20><><EFBFBD>̃X<CC83>N<EFBFBD><4E><EFBFBD>v<EFBFBD>g<EFBFBD><67> ODBC <20><><EFBFBD>O <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>̏ꏊ<CC8F><EA8F8A><EFBFBD>X<EFBFBD>V<EFBFBD><56><EFBFBD>܂<EFBFBD><DC82>B
Rem
Rem #########################################################################
Rem
Rem %RootDrive% <20><><EFBFBD>\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>̃X<CC83>N<EFBFBD><4E><EFBFBD>v<EFBFBD>g<EFBFBD>p<EFBFBD>ɐݒ肳<DD92><E882B3><EFBFBD>Ă<EFBFBD><C482><EFBFBD>Ƃ<EFBFBD><C682>m<EFBFBD>F<EFBFBD><46><EFBFBD>܂<EFBFBD><DC82>B
Rem
Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
If "%_CHKROOT%" == "FAIL" Goto Done
Rem #########################################################################
Rem <20><><EFBFBD>݁A<DD81>C<EFBFBD><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><> <20><><EFBFBD>[<5B>h<EFBFBD>łȂ<C582><C882><EFBFBD>A<EFBFBD>C<EFBFBD><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><> <20><><EFBFBD>[<5B>h<EFBFBD>ɕύX<CF8D><58><EFBFBD>܂<EFBFBD><DC82>B
Set __OrigMode=Install
ChgUsr /query > Nul:
if Not ErrorLevel 101 Goto Begin
Set __OrigMode=Exec
Change User /Install > Nul:
:Begin
..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\ODBC.Key ODBC.Key
regini ODBC.Key > Nul:
Rem <20><><EFBFBD>̃<EFBFBD><CC83>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD>s<EFBFBD><73><EFBFBD>[<5B>h<EFBFBD>ɖ߂<C996><DF82>܂<EFBFBD><DC82>B
If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
Set __OrigMode=
Echo.
Echo SQL <20>f<EFBFBD>[<5B>^ <EFBFBD>\<5C>[<5B>X<EFBFBD><58><EFBFBD>\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>A[<5B><><EFBFBD>[<5B>U<EFBFBD>[ DSN] <20>^<5E>u<EFBFBD><EFBFBD> [<5B>\<5C><>] <20>{<7B>^<5E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>b
Echo <20>N<EFBFBD><4E><EFBFBD>āA[<5B>I<EFBFBD>v<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD>] <20>{<7B>^<5E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>N<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A[<5B>v<EFBFBD><76><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>O] <20><><EFBFBD>N<EFBFBD><4E><EFBFBD>b<EFBFBD>N<EFBFBD><4E>
Echo <20>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<5B>N<EFBFBD>G<EFBFBD><47> <20><><EFBFBD>O] <20><> [<5B><><EFBFBD>v<EFBFBD>p<EFBFBD><70><EFBFBD>O] <20>{<7B>^<5E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>ă<EFBFBD><EFBFBD>O <20>t<EFBFBD>@<40>C<EFBFBD><43>
Echo <20>̕ۑ<CC95><DB91><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[<5B>U<EFBFBD>[<5B>̃<EFBFBD><CC83>[<5B>g <20>h<EFBFBD><68><EFBFBD>C<EFBFBD>u (%RootDrive%) <20>ɐݒ肵<DD92>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
Echo.
Echo <20><><EFBFBD><EFBFBD><EFBFBD>ɁA<C981>Ǘ<EFBFBD><C797>҂͑S<CD91><53><EFBFBD>[<5B>U<EFBFBD>[<5B>p<EFBFBD>̃f<CC83>[<5B>^ <EFBFBD>\<5C>[<5B>X<EFBFBD><58><EFBFBD>\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B
Echo <20>܂<EFBFBD><DC82>A<EFBFBD>R<EFBFBD>}<7D><><EFBFBD>h <20>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD>g<EFBFBD><67> "Change User /Install" <20>R<EFBFBD>}<7D><><EFBFBD>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD>͂<EFBFBD><CD82><EFBFBD>
Echo <20><><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>f<EFBFBD>[<5B>^ <EFBFBD>\<5C>[<5B>X<EFBFBD><58><EFBFBD>\<5C><><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
Echo <20>Ō<EFBFBD><C58C>ɂ܂<C982><DC82>R<EFBFBD>}<7D><><EFBFBD>h <20>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD>v<EFBFBD>g<EFBFBD><67> "Change User /Execute" <20><><EFBFBD><EFBFBD><EFBFBD>͂<EFBFBD><CD82>Č<EFBFBD><C48C><EFBFBD>
Echo <20><><EFBFBD>s<EFBFBD><73><EFBFBD>[<5B>h<EFBFBD>ɖ߂<C996><DF82>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
Echo.
Echo ODBC <20>̃}<7D><><EFBFBD>`<60><><EFBFBD>[<5B>U<EFBFBD>[ <20>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>‹<EFBFBD><C28B>ݒ肪<DD92><E882AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
Pause
:Done