51 lines
1.1 KiB
Batchfile
51 lines
1.1 KiB
Batchfile
|
@Echo Off
|
|||
|
|
|||
|
Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
|
|||
|
If "%_SETPATHS%" == "FAIL" Goto Done
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20>̰<EFBFBD><CCB0><EFBFBD> RootDrive<76><65> <20>ʿ<EFBFBD><CABF><EFBFBD><EFBFBD><EFBFBD> <20><>ũ<EFBFBD><C5A9>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>Դϴ<D4B4>.
|
|||
|
Rem
|
|||
|
|
|||
|
If Not Exist "%SystemRoot%\System32\Usrlogn1.cmd" Goto cont0
|
|||
|
Cd /d "%SystemRoot%\Application Compatibility Scripts\Logon"
|
|||
|
Call "%SystemRoot%\System32\Usrlogn1.cmd"
|
|||
|
|
|||
|
:cont0
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȩ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>̺<EFBFBD> <20><><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
|||
|
Rem <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.
|
|||
|
Rem
|
|||
|
|
|||
|
Cd /d %SystemRoot%\"Application Compatibility Scripts"
|
|||
|
Call RootDrv.Cmd
|
|||
|
If "A%RootDrive%A" == "AA" End.Cmd
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȩ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CDB8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>̺<EFBFBD> <20><><EFBFBD>ڷ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
|||
|
Rem
|
|||
|
|
|||
|
Net Use %RootDrive% /D >NUL: 2>&1
|
|||
|
Subst %RootDrive% "%HomeDrive%%HomePath%"
|
|||
|
if ERRORLEVEL 1 goto SubstErr
|
|||
|
goto AfterSubst
|
|||
|
:SubstErr
|
|||
|
Subst %RootDrive% /d >NUL: 2>&1
|
|||
|
Subst %RootDrive% "%HomeDrive%%HomePath%"
|
|||
|
:AfterSubst
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20><>ũ<EFBFBD><C5A9>Ʈ<EFBFBD><C6AE> <20>ҷ<EFBFBD><D2B7>ɴϴ<C9B4>. <20><>ġ <20><>ũ<EFBFBD><C5A9>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD>
|
|||
|
Rem <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20><>ũ<EFBFBD><C5A9>Ʈ<EFBFBD><C6AE> <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> UsrLogn2.Cmd<6D><64> <20>߰<EFBFBD><DFB0>˴ϴ<CBB4>.
|
|||
|
Rem
|
|||
|
|
|||
|
If Not Exist %SystemRoot%\System32\UsrLogn2.Cmd Goto Cont1
|
|||
|
|
|||
|
Cd Logon
|
|||
|
Call %SystemRoot%\System32\UsrLogn2.Cmd
|
|||
|
|
|||
|
:Cont1
|
|||
|
|
|||
|
:Done
|