70 lines
1.7 KiB
Batchfile
70 lines
1.7 KiB
Batchfile
|
|
|||
|
Set _CHKROOT=PASS
|
|||
|
|
|||
|
Cd "%SystemRoot%\Application Compatibility Scripts"
|
|||
|
|
|||
|
Call RootDrv.Cmd
|
|||
|
If Not "A%ROOTDRIVE%A" == "AA" Goto Cont2
|
|||
|
|
|||
|
|
|||
|
Echo REM > RootDrv2.Cmd
|
|||
|
Echo REM <20>b<EFBFBD><62><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD><6F><EFBFBD><EFBFBD><EFBFBD>ε{<7B><><EFBFBD>ۮe<DBAE>ʫ<EFBFBD><CAAB>O<EFBFBD>ɫe<C9AB>A<EFBFBD>z<EFBFBD><7A><EFBFBD><EFBFBD><EFBFBD><EFBFBD> >> RootDrv2.Cmd
|
|||
|
Echo REM <20><><EFBFBD>w<EFBFBD>@<40>ө|<EFBFBD><EFBFBD><EFBFBD>Φb<EFBFBD>ݾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϻо<EFBFBD> >> RootDrv2.Cmd
|
|||
|
Echo REM <20>N<EFBFBD><4E><EFBFBD>A<EFBFBD>Υ<EFBFBD><CEA5>ӹ<EFBFBD><D3B9><EFBFBD><EFBFBD>C<EFBFBD>ӨϥΪ̪<CEAA><CCAA>D<EFBFBD>ؿ<EFBFBD><D8BF>C >> RootDrv2.Cmd
|
|||
|
Echo REM <20>Ч<EFBFBD><D0A7>s<EFBFBD>o<EFBFBD><6F><EFBFBD>ɮ<C9AE><D7B5><EFBFBD><EFBFBD><EFBFBD> "Set RootDrive" <20>ԭz<D4AD><7A><EFBFBD>A<EFBFBD><41> >> RootDrv2.Cmd
|
|||
|
Echo REM <20><><EFBFBD>X<EFBFBD>һݪ<D2BB><DDAA>Ϻо<CFBA><D0BE>N<EFBFBD><4E><EFBFBD>C<EFBFBD>p<EFBFBD>G<EFBFBD>z<EFBFBD>S<EFBFBD><53><EFBFBD>ߦn<DFA6>]<5D>w<EFBFBD>A >> RootDrv2.Cmd
|
|||
|
Echo REM <20><>ij<EFBFBD>z<EFBFBD>ϥκϺо<CFBA> W:<3A>C<EFBFBD>Ҧp: >> RootDrv2.Cmd
|
|||
|
Echo REM >> RootDrv2.Cmd
|
|||
|
Echo REM Set RootDrive=W: >> RootDrv2.Cmd
|
|||
|
Echo REM >> RootDrv2.Cmd
|
|||
|
Echo REM <20>`<60>N<EFBFBD>ƶ<EFBFBD>: <20>нT<D0BD>w<EFBFBD>b<EFBFBD>Ϻо<CFBA><D0BE>N<EFBFBD><4E><EFBFBD>Ϋ_<CEAB><5F><EFBFBD>᭱<EFBFBD>S<EFBFBD><53><EFBFBD>Ů<EFBFBD><C5AE>C >> RootDrv2.Cmd
|
|||
|
Echo REM >> RootDrv2.Cmd
|
|||
|
Echo REM <20>b<EFBFBD>z<EFBFBD><7A><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>Ӥu<D3A4>@<40><><EFBFBD>A<EFBFBD><41><EFBFBD>x<EFBFBD>s<EFBFBD>o<EFBFBD><6F><EFBFBD>ɮרõ<D7A8><C3B5><EFBFBD> >> RootDrv2.Cmd
|
|||
|
Echo REM <20>O<EFBFBD>ƥ<EFBFBD><C6A5>A<EFBFBD>H<EFBFBD>~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ε{<7B><><EFBFBD>ۮe<DBAE>ʫ<EFBFBD><CAAB>O<EFBFBD>ɡC >> RootDrv2.Cmd
|
|||
|
Echo REM >> RootDrv2.Cmd
|
|||
|
Echo. >> RootDrv2.Cmd
|
|||
|
Echo Set RootDrive=>> RootDrv2.Cmd
|
|||
|
Echo. >> RootDrv2.Cmd
|
|||
|
|
|||
|
NotePad RootDrv2.Cmd
|
|||
|
|
|||
|
Call RootDrv.Cmd
|
|||
|
If Not "A%ROOTDRIVE%A" == "AA" Goto Cont1
|
|||
|
|
|||
|
Echo.
|
|||
|
Echo <20>b<EFBFBD><62><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD><6F><EFBFBD><EFBFBD><EFBFBD>ε{<7B><><EFBFBD>ۮe<DBAE>ʫ<EFBFBD><CAAB>O<EFBFBD>ɫe<C9AB>A<EFBFBD>z<EFBFBD><7A><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
Echo <20><><EFBFBD>w<EFBFBD>@<40>ӺϺо<CFBA><D0BE>N<EFBFBD><4E><EFBFBD>A<EFBFBD>Υ<EFBFBD><CEA5>ӹ<EFBFBD><D3B9><EFBFBD><EFBFBD>C<EFBFBD>ӨϥΪ̪<CEAA>
|
|||
|
Echo <20>D<EFBFBD>ؿ<EFBFBD><D8BF>C
|
|||
|
Echo.
|
|||
|
Echo <20><><EFBFBD>O<EFBFBD>ɲפ<C9B2><D7A4>C
|
|||
|
Echo.
|
|||
|
Pause
|
|||
|
|
|||
|
Set _CHKROOT=FAIL
|
|||
|
Goto Cont3
|
|||
|
|
|||
|
|
|||
|
:Cont1
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20>I<EFBFBD>s<EFBFBD>ϥΪ̵n<CCB5>J<EFBFBD><4A><EFBFBD>O<EFBFBD>ɨӹ<C9A8><D3B9><EFBFBD><EFBFBD>{<7B>b<EFBFBD><62><EFBFBD>ںϺо<CFBA><D0BE>A
|
|||
|
Rem <20>H<EFBFBD>K<EFBFBD>i<EFBFBD><69><EFBFBD><EFBFBD><EFBFBD>ε{<7B><><EFBFBD>w<EFBFBD>ˡC
|
|||
|
Rem
|
|||
|
|
|||
|
Call "%SystemRoot%\System32\UsrLogon.Cmd
|
|||
|
|
|||
|
|
|||
|
:Cont2
|
|||
|
|
|||
|
Rem <20>]<5D>w RootDrive <20>n<EFBFBD><6E><EFBFBD><EFBFBD><EFBFBD>X
|
|||
|
|
|||
|
echo HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Terminal Server > chkroot.key
|
|||
|
echo RootDrive = REG_SZ %ROOTDRIVE%>> chkroot.key
|
|||
|
|
|||
|
regini chkroot.key > Nul:
|
|||
|
|
|||
|
|
|||
|
:Cont3
|
|||
|
|
|||
|
Cd "%SystemRoot%\Application Compatibility Scripts\Install"
|