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

51 lines
1.2 KiB
Batchfile
Raw Normal View History

2020-09-26 03:20:57 -05:00
@echo off
Rem
Rem <20>o<EFBFBD>ӫ<EFBFBD><D3AB>O<EFBFBD>ɷ|<7C><><EFBFBD>s ODBC <20>O<EFBFBD><4F><EFBFBD>ɦ<EFBFBD><C9A6>m<EFBFBD>C
Rem
Rem #########################################################################
Rem
Rem <20>ˬd %RootDrive% <20>O<EFBFBD>_<EFBFBD>w<EFBFBD>]<5D>w<EFBFBD>A<EFBFBD>ñN<C3B1><4E><EFBFBD>]<5D>w<EFBFBD><77><EFBFBD>o<EFBFBD>ӫ<EFBFBD><D3AB>O<EFBFBD>ɡC
Rem
Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
If "%_CHKROOT%" == "FAIL" Goto Done
Rem #########################################################################
Rem <20>p<EFBFBD>G<EFBFBD>ثe<D8AB><65><EFBFBD>O<EFBFBD>w<EFBFBD>˼Ҧ<CBBC><D2A6>A<EFBFBD>N<EFBFBD>ܧ󦨦w<F3A6A8A6>˼Ҧ<CBBC><D2A6>C
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>p<EFBFBD>G<EFBFBD><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6>A<EFBFBD>N<EFBFBD>ܦ^<5E><><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6>C
If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
Set __OrigMode=
Echo.
Echo <20>]<5D>w SQL <20><><EFBFBD>ƨӷ<C6A8><D3B7>ɡA<C9A1><41><EFBFBD><EFBFBD><EFBFBD>@<40>U [<5B>ϥΪ<CFA5> DSN] <20><><EFBFBD>޼<EFBFBD><DEBC><EFBFBD>
Echo <20><><EFBFBD><EFBFBD> [<5B>ﶵ] <20><><EFBFBD>s<EFBFBD>A<EFBFBD>M<EFBFBD><4D><EFBFBD><EFBFBD><EFBFBD>@<40>U [<5B>]<5D>w<EFBFBD>ɳB<C9B3>z] <20><><EFBFBD>s<EFBFBD>C<EFBFBD>N<EFBFBD>d
Echo <20>߰O<DFB0><4F><EFBFBD>ɤβέp<CEAD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>ܧ<EFBFBD><DCA7><EFBFBD><EFBFBD>x<EFBFBD>s<EFBFBD>b<EFBFBD>ϥΪ̮ڥؿ<DAA5><D8BF>Ϻо<CFBA>
Echo (%RootDrive%) <20><><EFBFBD>C
Echo.
Echo <20><><EFBFBD>~<7E>A<EFBFBD>t<EFBFBD>κ޲z<DEB2><7A><EFBFBD>i<EFBFBD>H<EFBFBD><48><EFBFBD>Ҧ<EFBFBD><D2A6><EFBFBD><EFBFBD>ϥΪ̳]<5D>w
Echo <20>@<40>Ӹ<EFBFBD><D3B8>ƨӷ<C6A8><D3B7>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>}<7D>Ҥ@<40>ӫ<EFBFBD><D3AB>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>A
Echo <20>ÿ<EFBFBD><C3BF>J "Change User /Install"<EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>C<EFBFBD><EFBFBD><EFBFBD>ۡA
Echo <20>]<5D>w<EFBFBD><77><EFBFBD>ƨӷ<C6A8><D3B7>C<EFBFBD>̫<EFBFBD><CCAB>A<EFBFBD>b<EFBFBD><62><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>J
Echo "Change User /Execute" <20><><EFBFBD>O<EFBFBD>A<EFBFBD>^<5E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><EFBFBD>C
Echo.
Echo ODBC <20>h<EFBFBD>ϥΪ<CFA5><CEAA><EFBFBD><EFBFBD>ε{<7B><><EFBFBD>վ<EFBFBD><D5BE>B<EFBFBD>z<EFBFBD><7A><EFBFBD><EFBFBD>
Pause
:Done