windows-nt/Source/XPSP1/NT/termsrv/admtools/appcmpt/chs/chkroot.cmd

70 lines
1.6 KiB
Batchfile
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
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><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Խű<D4BD>֮ǰ<D6AE><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> >> RootDrv2.Cmd
Echo REM ָ<><D6B8>һ<EFBFBD><D2BB><EFBFBD>ն˷<D5B6><CBB7><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>ʹ<EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ţ<EFBFBD> >> RootDrv2.Cmd
Echo REM <20>Ա<EFBFBD>ӳ<EFBFBD>䵽ÿ<E4B5BD><C3BF><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>Ŀ¼<C4BF><C2BC> >> RootDrv2.Cmd
Echo REM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>β<EFBFBD><CEB2> "Set RootDrive" <20><><EFBFBD><EFBFBD> >> RootDrv2.Cmd
Echo REM <20><>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>š<EFBFBD><C5A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD> >> RootDrv2.Cmd
Echo REM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> W:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: >> RootDrv2.Cmd
Echo REM >> RootDrv2.Cmd
Echo REM Set RootDrive=W: >> RootDrv2.Cmd
Echo REM >> RootDrv2.Cmd
Echo REM ע<><D7A2>: <20><>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ź<EFBFBD>ð<EFBFBD>ź<EFBFBD>û<EFBFBD>пո<D0BF><D5B8><EFBFBD> >> RootDrv2.Cmd
Echo REM >> RootDrv2.Cmd
Echo REM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EBB1A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>˳<EFBFBD> >> RootDrv2.Cmd
Echo REM <20><><EFBFBD><EFBFBD><EFBFBD>±<EFBFBD><C2B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Խű<D4BD><C5B1><EFBFBD> >> 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><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Խű<D4BD>֮ǰ<D6AE><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Echo ָ<><D6B8>һ<EFBFBD><D2BB>Ҫӳ<D2AA>䵽ÿ<E4B5BD><C3BF><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>Ŀ¼<C4BF><C2BC>
Echo <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>š<EFBFBD>
Echo.
Echo <20><><EFBFBD><EFBFBD>ֹ<EFBFBD>ű<EFBFBD><C5B1><EFBFBD>
Echo.
Pause
Set _CHKROOT=FAIL
Goto Cont3
:Cont1
Rem
Rem <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD>¼<EFBFBD>ű<EFBFBD><C5B1><EFBFBD>ӳ<EFBFBD><D3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Rem <20>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>װӦ<D7B0>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD>
Rem
Call "%SystemRoot%\System32\UsrLogon.Cmd
:Cont2
Rem <20><><EFBFBD><EFBFBD>ע<EFBFBD><D7A2><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD> RootDrive <20><>
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"