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><EFBFBD><EFBFBD><EFBFBD> RootDrive <20><><EFBFBD>K<EFBFBD>v<EFBFBD>Ƃ<EFBFBD><C682>Ȃ<EFBFBD><C882>X<EFBFBD>N<EFBFBD><4E><EFBFBD>v<EFBFBD>g<EFBFBD>p<EFBFBD>ł<EFBFBD><C582>B
|
|||
|
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>[<5B>U<EFBFBD>[<5B>̃z<CC83>[<5B><> <20>f<EFBFBD>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߂܂<DF82><DC82>B<EFBFBD>ݒ肳<DD92><E882B3><EFBFBD>Ă<EFBFBD><C482>Ȃ<EFBFBD><C882>ꍇ<EFBFBD>A
|
|||
|
Rem <20>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
Rem
|
|||
|
|
|||
|
Cd /d %SystemRoot%\"Application Compatibility Scripts"
|
|||
|
Call RootDrv.Cmd
|
|||
|
If "A%RootDrive%A" == "AA" End.Cmd
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20><><EFBFBD>[<5B>U<EFBFBD>[<5B>̃z<CC83>[<5B><> <20>f<EFBFBD>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u<EFBFBD><75><EFBFBD><EFBFBD><EFBFBD>Ƀ}<7D>b<EFBFBD>v<EFBFBD><76><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
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><><EFBFBD>ꂼ<EFBFBD><EA82BC><EFBFBD>̃A<CC83>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD> <20>X<EFBFBD>N<EFBFBD><4E><EFBFBD>v<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD> <20>X<EFBFBD>N<EFBFBD><4E><EFBFBD>v<EFBFBD>g<EFBFBD>̓C<CD83><43><EFBFBD>X<EFBFBD>g<EFBFBD>[<5B><> <20>X<EFBFBD>N<EFBFBD><4E><EFBFBD>v<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>ꂽ<EFBFBD><EA82BD><EFBFBD>ɁA
|
|||
|
Rem <20><><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD><49> UsrLogn2.Cmd <20>ɒlj<C992><C789><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
|||
|
Rem
|
|||
|
|
|||
|
If Not Exist %SystemRoot%\System32\UsrLogn2.Cmd Goto Cont1
|
|||
|
|
|||
|
Cd Logon
|
|||
|
Call %SystemRoot%\System32\UsrLogn2.Cmd
|
|||
|
|
|||
|
:Cont1
|
|||
|
|
|||
|
:Done
|