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 ÀÌ ÀÀ¿ë ÇÁ·Î±×·¥ ȣȯ ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇϱâ Àü¿¡, >> RootDrv2.Cmd Echo Rem ÇöÀç Å͹̳Π¼­¹ö¿¡ »ç¿ëµÇ°í ÀÖÁö ¾Ê´Â µå¶óÀÌºê ¹®ÀÚ¸¦ ÁöÁ¤ÇÏ¿© °¢ »ç¿ëÀÚÀÇ >> RootDrv2.Cmd Echo Rem Ȩ µð·ºÅ͸®¿¡ ¸ÅÇÎÇØ¾ß ÇÕ´Ï´Ù. >> RootDrv2.Cmd Echo Rem ¿øÇÏ´Â µå¶óÀÌºê ¹®ÀÚ¸¦ ÁöÁ¤ÇÏ·Á¸é "Set RootDrive" ¹®ÀÇ ¸Ç ³¡À» >> RootDrv2.Cmd Echo Rem ¾÷µ¥ÀÌÆ®ÇϽʽÿÀ. ¼±È£ÇÏ´Â ¹®ÀÚ°¡ ¾øÀ¸¸é >> RootDrv2.Cmd Echo Rem W: µå¶óÀ̺긦 ±ÇÀåÇÕ´Ï´Ù. ¿¹¸¦ µé¾î: >> RootDrv2.Cmd Echo REM >> RootDrv2.Cmd Echo REM Set RootDrive=W: >> RootDrv2.Cmd Echo REM >> RootDrv2.Cmd Echo Rem Âü°í: µå¶óÀÌºê ¹®ÀÚ¿Í ÄÝ·Ð »çÀÌ¿¡ ºó Ä­ÀÌ ¾ø´ÂÁö È®ÀÎÇϽʽÿÀ. >> RootDrv2.Cmd Echo REM >> RootDrv2.Cmd Echo Rem ÀÌ ÀÛ¾÷À» ¿Ï·áÇßÀ¸¸é, ÀÌ ÆÄÀÏÀ» ÀúÀåÇÏ°í >> RootDrv2.Cmd Echo Rem NotePad¸¦ ³¡³»°í °è¼ÓÇؼ­ ÀÀ¿ë ÇÁ·Î±×·¥ ȣȯ ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇϽʽÿÀ. >> 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 ÀÌ ÀÀ¿ë ÇÁ·Î±×·¥ ȣȯ ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇϱâ Àü¿¡, Echo °¢ »ç¿ëÀÚÀÇ È¨ µð·ºÅ͸®¿¡ ¸ÅÇÎÇÒ µå¶óÀÌºê ¹®ÀÚ¸¦ Echo ÁöÁ¤ÇϽʽÿÀ. Echo. Echo ½ºÅ©¸³Æ®¸¦ Á¾·áÇß½À´Ï´Ù. Echo. Pause Set _CHKROOT=FAIL Goto Cont3 :Cont1 Rem Rem »ç¿ëÀÚ ·Î±×¿Â ½ºÅ©¸³Æ®¸¦ È£ÃâÇÏ¿© ·çÆ® µå¶óÀ̺긦 ¸ÅÇÎÇÕ´Ï´Ù. ÀÌÁ¦ Rem ¼³Ä¡ ÀÀ¿ë ÇÁ·Î±×·¥¿¡ »ç¿ëµÉ ¼ö ÀÖ½À´Ï´Ù. Rem Call "%SystemRoot%\System32\UsrLogon.Cmd :Cont2 Rem ·¹Áö½ºÆ®¸®¿¡ RootDrive Å°¸¦ ¼³Á¤ÇÕ´Ï´Ù. 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"