@Echo Off Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd" If "%_SETPATHS%" == "FAIL" Goto Done Rem Rem ÀÌ°ÍÀº RootDrive°¡ ÇÊ¿ä¾ø´Â ½ºÅ©¸³Æ®¸¦ À§ÇÑ °ÍÀÔ´Ï´Ù. 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 »ç¿ëÀÚ È¨ µð·ºÅ͸® µå¶óÀÌºê ¹®ÀÚ¸¦ °áÁ¤ÇÕ´Ï´Ù. ¼³Á¤µÇ¾î ÀÖÁö Rem ¾ÊÀ¸¸é ³¡³À´Ï´Ù. Rem Cd /d %SystemRoot%\"Application Compatibility Scripts" Call RootDrv.Cmd If "A%RootDrive%A" == "AA" End.Cmd Rem Rem »ç¿ëÀÚ È¨ µð·ºÅ͸®¸¦ µå¶óÀÌºê ¹®ÀÚ·Î ¸ÅÇÎÇÕ´Ï´Ù. 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 °¢ ÀÀ¿ë ÇÁ·Î±×·¥ ½ºÅ©¸³Æ®¸¦ ºÒ·¯¿É´Ï´Ù. ¼³Ä¡ ½ºÅ©¸³Æ®°¡ ½ÇÇàµÇ¸é Rem ÀÀ¿ë ÇÁ·Î±×·¥ ½ºÅ©¸³Æ®´Â ÀÚµ¿À¸·Î UsrLogn2.Cmd¿¡ Ãß°¡µË´Ï´Ù. Rem If Not Exist %SystemRoot%\System32\UsrLogn2.Cmd Goto Cont1 Cd Logon Call %SystemRoot%\System32\UsrLogn2.Cmd :Cont1 :Done