- °³¿ä
- À¯¿ëÇÑ ÇÁ·Î±×·¥µé
- clip - Ä¿¸Çµå ¶óÀÎ Ãâ·ÂÀ» Ŭ¸³ º¸µå·Î º¹»ç
- findstr - ÆÄÀÏ ³»¿¡¼ ¹®ÀÚ¿ ã±â
- sort - Ç¥ÁØ Ãâ·ÂÀ» ¼ÒÆÃ
- where - µð·ºÅ丮¿¡¼ ÆÄÀÏ Ã£±â
- attrib - ÆÄÀÏ Æ¯¼º º¯°æ
- fc - diff À©µµ¿ìÁî ¹öÀü
- replace - ÆÄÀÏÀ» ¹Ù²Û´Ù
- xcopy - ÆÄÀÏ ¹× µð·ºÅ丮 Æ®¸® º¹»ç
- diruse - µð½ºÅ© »ç¿ë·® Ç¥½Ã
- at - cron À©µµ¿ìÁî ¹öÀü
- kill - ÇÁ·Î¼¼½º ³¡³»±â
- rkill - ´Ù¸¥ ÄÄÇ»ÅÍÀÇ ÇÁ·Î¼¼½º ³¡³»±â
- pmon - top À©µµ¿ìÁî ¹öÀü
- soon - sleep + ¸í·É¾î
- elogdmp - À̺¥Æ® ·Î±× ´ýÆÛ
- dumpel - Á» ´õ ³ªÀº À̺¥Æ® ·Î±× ´ýÆÛ
- sc - ¼ºñ½º ÄÁÆ®·Ñ·¯
- net - °¢Á¾ ½Ã½ºÅÛ °ü¸®
- ½ºÅ©¸³Æ® ¶Ç´Â Àϰý ÆÄÀÏ¿¡¼ À¯¿ëÇÑ ÇÁ·Î±×·¥ ¹× ¸í·É¾îµé
- call
- choice
- cls
- echo
- for
- forfiles
- freedisk
- gettype
- goto
- if
- ifmember
- pause
- prompt
- rem
- set
- setlocal...endlocal
- shift
- sleep
- timeout
- waitfor
- Run ¸Þ´º¸¦ ÅëÇØ ½ÇÇàÇÒ ¼ö ÀÖ´Â ¸í·É¾îµé
- ¹èÄ¡ ÆÄÀÏ ÆÄ¶ó¹ÌÅÍ
- ¸µÅ©
- ´Ù¿î·Îµå
1 °³¿ä
À©µµ¿ìÁî Ä¿¸Çµå ÇÁ·ÒÇÁÆ®¿¡¼ »ç¿ëÇÒ ¼ö ÀÖ´Â ÇÁ·Î±×·¥µé¿¡ ´ëÇÑ Á¤¸®´Ù. Ä¿¸Çµå âÀÇ ¼º°Ý»ó(?), ¾Æ¹«·¡µµ ÁÖ¿ä °ü½É»ç´Â ¹èÄ¡ ÀÛ¾÷À̶ó°í ÇÒ ¼ö ÀÖ´Ù.
¾Æ·¡¿¡ ³ª¿À´Â ¸ðµç ÇÁ·Î±×·¥µéÀÌ ±âº»ÀûÀ¸·Î ¼³Ä¡µÇ´Â °ÍÀº ¾Æ´Ï°í, ƯÁ¤ ÇÁ·Î±×·¥Àº ¸®¼Ò½º Ŷ ¹× °ü¸®ÅøÀ» Ãß°¡ÀûÀ¸·Î ±ò¾Æ¾ß »ç¿ëÇÒ ¼ö ÀÖ´Ù.
- ¸®¼Ò½º ŶÀº ´ÙÀ½ ÁÖ¼Ò·Î °¡¼ ¹ÞÀ» ¼ö ÀÖ´Ù.
http://www.microsoft.com/windows/reskits/default.asp
- °ü¸® ÅøµéÀº ±âº»ÀûÀ¸·Î À©µµ¿ì 2000 ½Ãµð¿Í ÇÔ²² µþ·Á¿Â´Ù.
- \Support\Tools\Setup - Windows 2000 Support Tools
- \Support\Tools\Deploy.Cab - ½Ã½ºÅÛ ¼³Ä¡ ÀÚµ¿È(system installation automation) ÅøµéÀÌ´Ù. ÀÚµ¿ ¼³Ä¡ ÇÁ·Î±×·¥ÀÌ ¾Æ´Ï±â ¶§¹®¿¡ ¼öµ¿À¸·Î ¾ÐÃàÀ» Ç®¾î¼ ÀÓÀÇÀÇ µð·ºÅ丮¿¡´Ù ¼³Ä¡ÇؾßÇÑ´Ù.
- \I386\AdminPak.MSI - Server ¹öÀü À̻󿡸¸ Á¸ÀçÇÑ´Ù. Professional¿¡´Â Á¸ÀçÇÏÁö ¾ÊÀ½. Àû¾îµµ ³» ½Ãµð¿¡´Â ¾ø¾ú´Ù. -_-
- \ValueAdd\3rdParty\Mgmt\Winstel\SwiAdmLE.MSI - Windows Installer LE.
2 À¯¿ëÇÑ ÇÁ·Î±×·¥µé
2.1 clip - Ä¿¸Çµå ¶óÀÎ Ãâ·ÂÀ» Ŭ¸³ º¸µå·Î º¹»ç
Ä¿¸Çµå ¶óÀÎ Ãâ·ÂÀ» Ŭ¸³ º¸µå·Î º¹»çÇÑ´Ù.
| ÇöÀç µð·ºÅ丮ÀÇ ÆÄÀÏ ¸ñ·ÏÀ» Ŭ¸³ º¸µå·Î º¹»ç | dir | clip |
| ÆÄÀÏ ¾ÈÀÇ ÅØ½ºÆ®¸¦ Ŭ¸³ º¸µå·Î º¹»ç | clip < readme.txt |
2.2 findstr - ÆÄÀÏ ³»¿¡¼ ¹®ÀÚ¿ ã±â
À¯´Ð½º °è¿ÀÇ grep°ú ºñ½ÁÇÑ ÇÁ·Î±×·¥ÀÌ´Ù. Áï ÆÄÀÏ ³»¿¡¼ ¹®ÀÚ¿À» ã¾Æ¼ ±×°ÍÀ» ÁÙ ´ÜÀ§·Î Ç¥½ÃÇØÁÖ´Â ÇÁ·Î±×·¥ÀÌ´Ù. ÀϹÝÀûÀÎ ¹®ÀÚ¿µµ ãÀ» ¼ö ÀÖ°í, Á¤±Ô½Ä ºñ½ÁÇÑ °ÍÀ» »ç¿ëÇÒ ¼öµµ ÀÖ´Ù. Á¤±Ô½Ä¿¡ °üÇÑ °ÍÀº ÇÁ·Î±×·¥ ³»ºÎ µµ¿ò¸»À» Âü°íÇϵµ·Ï.
| ´Ü¾î ã±â | findstr hello test.txt |
| ¿©·¯ ´Ü¾î ÁßÀÇ Çϳª ã±â | findstr "hello there" test.txt |
| ºó ÄÀ» Æ÷ÇÔÇÑ ¹®ÀÚ¿ ã±â | findstr /C:"hello there" test.txt |
| ´ë¼Ò¹®ÀÚ ±¸º°ÇÏÁö ¾Ê°í ã±â | findstr /I hello test.txt |
| ¹®ÀÚ¿À» Æ÷ÇÔÇÏ´Â ÁÙ¸¸ Á¦¿ÜÇϰí Ãâ·ÂÇϱâ | findstr /V hello test.txt |
| Á¤±Ô½ÄÀ» ÀÌ¿ëÇØ¼ ã±â | findstr /R "^hello" test.txt |
2.3 sort - Ç¥ÁØ Ãâ·ÂÀ» ¼ÒÆÃ
2.4 where - µð·ºÅ丮¿¡¼ ÆÄÀÏ Ã£±â
ÀÓÀÇÀÇ µð·ºÅ丮¿¡¼ ÁÖ¾îÁø Á¶°Ç¿¡ ºÎÇÕÇÏ´Â ÆÄÀϵéÀ» Ãâ·ÂÇÑ´Ù. /r ½ºÀ§Ä¡¸¦ ÀÌ¿ëÇØ ãÀ» µð·ºÅ丮¸¦ ÀÌ¿ëÇÏÁö ¾ÊÀ» °æ¿ì ȯ°æ º¯¼ö PATH¿¡ ÀԷµǾî ÀÖ´Â µð·ºÅ丮µéÀ» ã´Â´Ù´Â Ư¡ÀÌ ÀÖ´Ù.
| ƯÁ¤ ¹®ÀÚ¿À» ÆÄÀÏ À̸§À¸·Î Æ÷ÇÔÇÏ´Â ÆÄÀϵéÀ» PATH ³»¿¡¼ ã±â | where bar |
| ÇöÀç µð·ºÅ丮¿¡¼ ƯÁ¤ ¹®ÀÚ¿À» ÆÄÀÏ À̸§À¸·Î Æ÷ÇÔÇÏ´Â ÆÄÀÏ Ã£±â | where /r \ bar |
| ÀÓÀÇÀÇ µð·ºÅ丮¿¡¼ ƯÁ¤ ¹®ÀÚ¿À» ÆÄÀÏ À̸§À¸·Î Æ÷ÇÔÇÏ´Â ÆÄÀÏ Ã£±â | where /r D:\foo *.txt |
2.5 attrib - ÆÄÀÏ Æ¯¼º º¯°æ
ÆÄÀÏ Æ¯¼ºÀ» ȸ鿡 Ç¥½ÃÇϰųª ¹Ù²Û´Ù. ÆÄÀÏ¿¡ Àбâ Àü¿ë ¼Ó¼º µîÀÌ ÀÖ´Â °æ¿ì, del ¸í·É¾î·Î´Â Áö¿öÁöÁö°¡ ¾Ê´Âµ¥, ÀÌ ¸í·É¾î¸¦ ÀÌ¿ëÇØ ÀÌ·± ¼Ó¼ºÀ» Á¦°ÅÇÒ ¼ö ÀÖ´Ù.
| ƯÁ¤ ÆÄÀϵéÀÇ Àбâ Àü¿ë ¼Ó¼º Á¦°ÅÇϱâ | attrib -R *.zip |
| ƯÁ¤ µð·ºÅ丮¿¡ ÀÖ´Â ÆÄÀϵéÀÇ Àбâ Àü¿ë ¼Ó¼º Á¦°ÅÇϱâ | attrib -R /S /D D:\foo |
2.6 fc - diff À©µµ¿ìÁî ¹öÀü
ÆÄÀÏ ºñ±³ ÇÁ·Î±×·¥ÀÌ´Ù. UNIXÀÇ diffÇÏ°í ºñ½ÁÇÑ ±â´ÉÀ» ÇÑ´Ù°í ÇÒ ¼ö ÀÖ´Ù. µÎ ÆÄÀÏ ¶Ç´Â ÆÄÀÏÀÇ ÁýÇÕÀ» ºñ±³ÇÏ°í µÑ »çÀÌÀÇ ´Ù¸¥Á¡À» ȸ鿡 Ç¥½ÃÇÑ´Ù. À¯´ÏÄÚµå ÆÄÀϵµ ºñ±³ÇÒ ¼ö ÀÖ´Ù.
| µÎ ÆÄÀÏ °£ÀÇ Â÷ÀÌÁ¡ ºñ±³Çϱâ | fc 1.txt 2.txt |
| ´ë¼Ò¹®ÀÚ ±¸º°ÇÏÁö ¾Ê°í ºñ±³Çϱâ | fc /c 1.txt 2.txt |
| ºñ±³ Á¤º¸¸¦ °£´ÜÇÏ°Ô Ç¥½ÃÇϱâ | fc /a 1.txt 2.txt |
2.7 replace - ÆÄÀÏÀ» ¹Ù²Û´Ù
Ÿ°Ù µð·ºÅ丮¿¡ ÀÖ´Â ÆÄÀϵéÀ» ¼Ò½º µð·ºÅ丮¿¡ ÀÖ´Â ÆÄÀϵé·Î ġȯÇÑ´Ù. ¾î¶»°Ô º¸¸é xcopy /D /U¸¦ ¾²´Â °ÍÀÌ ³ªÀ» ¼öµµ...
2.8 xcopy - ÆÄÀÏ ¹× µð·ºÅ丮 Æ®¸® º¹»ç
²Ï ÀÚÁÖ »ç¿ëÇÏ°Ô µÇ´Â ¸í·É¾î´Ù. À̿ܿ¡µµ ¿É¼ÇÀÌ »ó´çÈ÷ ¸¹´Ù.
| ´ë»ó µð·ºÅ丮¿¡ ÀÖ´Â ÆÄÀϺ¸´Ù »õ·Î¿î ¿øº» ÆÄÀϵ鸸 º¹»çÇϱâ | xcopy *.exe \\GAMESERVER\SBIN /d /y |
| µð·ºÅ丮 Æ®¸® Àüü¸¦ º¹»çÇϱâ | xcopy /D /S D:\source \\GAMESERVER\target |
http://www.xxcopy.com - xcopy °³¼± ¹öÀü?
2.9 diruse - µð½ºÅ© »ç¿ë·® Ç¥½Ã
ƯÁ¤ µð·ºÅ丮ÀÇ µð½ºÅ© »ç¿ë·®À» Ç¥½ÃÇÑ´Ù. UNIXÀÇ df¿Í ºñ½ÁÇÏ´Ù°í º¼ ¼ö ÀÖÀ»±î?
| ƯÁ¤ µð·ºÅ丮ÀÇ µð½ºÅ© »ç¿ë·® Ç¥½Ã | diruse d:\cuvit |
| ƯÁ¤ µð·ºÅ丮 ¹× ±× ÇÏÀ§ µð·ºÅ丮µéÀÇ µð½ºÅ© »ç¿ë·® Ç¥½Ã | diruse /S d:\cuvit |
| ƯÁ¤ µð·ºÅ丮 ³»¿¡¼ 1.5¸Þ°¡ ÀÌ»óÀ» Â÷ÁöÇÏ´Â µð·ºÅ丮µéÀ» Ç¥½ÃÇÏ°í ·Î±×Çϱâ | diruse /S /M /Q:1.5 /L /* c:\users |
2.10 at - cron À©µµ¿ìÁî ¹öÀü
ÁöÁ¤µÈ ½Ã°£°ú ³¯Â¥¿¡ ƯÁ¤ ÇÁ·Î±×·¥À̳ª ¸í·ÉÀÌ ½ÇÇàÇÑ´Ù. UNIXÀÇ cron°ú ºñ½ÁÇÑ ±â´ÉÀ» ÇÑ´Ù°í º¼ ¼ö ÀÖ´Ù. at ÇÁ·Î±×·¥À» »ç¿ëÇÏ·Á¸é Task Scheduler ¼ºñ½º°¡ Ȱ¼ºÈµÇ¾î ÀÖ¾î¾ßÇÑ´Ù.
| ¸ÅÀÏ 5½Ã¿¡ ¹èÄ¡ ÆÄÀÏ ¼öÇàÇϱâ | at 05:00:00 /interactive /every:M,T,W,Th,F,S,Su cmd /c e:\ss_backup.bat |
2.11 kill - ÇÁ·Î¼¼½º ³¡³»±â
¼³¸íÀÌ ÇÊ¿äÇÒ±î... ÇÁ·Î¼¼½º¸¦ Á¾·áÇÑ´Ù. PID¸¦ ÀÎÀÚ·Î ÁÙ ¼öµµ ÀÖ°í, ÇÁ·Î¼¼½ºÀÇ À̸§À» Á¤±Ô½ÄÀ¸·Î ÁÙ ¼öµµ ÀÖ´Ù.
2.12 rkill - ´Ù¸¥ ÄÄÇ»ÅÍÀÇ ÇÁ·Î¼¼½º ³¡³»±â
kill ¸í·É¾îÀÇ ¸®¸ðÆ® ¹öÀüÀ̶ó°í ÇÒ ¼ö ÀÖÀ»±î? ÇÏÁö¸¸ ¿ØÁö º¸¾È ÂÊÀ¸·Î À§ÇèÇÒ °Í °°Àº ÇÁ·Î±×·¥ÀÌ´Ù.
| ƯÁ¤ ¼¹ö ³»ÀÇ ÇÁ·Î¼¼½ºµéÀ» º¸±â | rkill /view \\servername |
| ƯÁ¤ PID¸¦ °¡Áø ÇÁ·Î¼¼½º Á×À̱â | rkill /kill \\servername pid |
| ƯÁ¤ À̸§À» °¡Áø ÇÁ·Î¼¼½º Á×À̱â | rkill /nkill \\servername process.exe |
| ƯÁ¤ ¼¹ö¿¡´Ù ¸®¸ðƮų ¼ºñ½º ¼³Ä¡Çϱâ | rkill /install \\servername |
| ƯÁ¤ ¼¹ö¿¡¼ ¸®¸ðƮų ¼ºñ½º Á¦°ÅÇϱâ | rkill /deinstall \\servername |
2.13 pmon - top À©µµ¿ìÁî ¹öÀü
¸®´ª½ºÀÇ top ÇÁ·Î±×·¥°ú ºñ½ÁÇÏ´Ù. È¸é ·¹À̾ƿôµµ °ÅÀÇ °°´Ù. ½ÇÇà ÁßÀÎ ÇÁ·Î¼¼½º, CPU ¹× ¸Þ¸ð¸® »ç¿ë·® µîÀ» ÀÏÁ¤ °£°ÝÀ¸·Î Æú¸µÇÏ¸ç º¸¿©ÁØ´Ù.
2.14 soon - sleep + ¸í·É¾î
at ¸í·É°ú ºñ½ÁÇÏ´Ù°íµµ º¼ ¼ö ÀÖ´Â ½ºÄÉÁì ÇÁ·Î±×·¥ÀÌ´Ù. ÇÏÁö¸¸ Á» ´õ ªÀº ´ÜÀ§ÀÇ µô·¹ÀÌ¿¡ ¾Ë¸ÂÀº ÇÁ·Î±×·¥ÀÌ´Ù. ¸î ÃÊ ´ÜÀ§?
SOON CMD /C C:\JOBS\BATCH.CMD
SOON 10 CMD /C C:\JOBS\BATCH.CMD
SOON \\SERVER 60 /C \JOBS\BATCH.CMD
SOON \\SERVER /INTERACTIVE CMD /C C:\JOBS\BATCH.CMD
SOON /d /l:2 /r:30 /i:on
2.15 elogdmp - À̺¥Æ® ·Î±× ´ýÆÛ
ÇØ´çÇÏ´Â ÄÄÇ»ÅÍÀÇ Æ¯Á¤ À̺¥Æ® ·Î±×¸¦ CSV Æ÷¸ËÀ¸·Î Ãâ·ÂÇØÁÖ´Â ÇÁ·Î±×·¥ÀÌ´Ù.
ELOGDMP machinename eventlogtype
machinename Specify the machine to query
eventlogtype Specify the event log type: Application, Security or System
2.16 dumpel - Á» ´õ ³ªÀº À̺¥Æ® ·Î±× ´ýÆÛ
dumpel -f file [-s \\server] [-l log [-m source]] [-e n1 n2 n3..] [-r] [-t] [-dx]
-d <days> Filters for event last days (number larger than zero)
-e nn Filters for event id nn (up to 10 may be specified)
-f <filename> Output filename (default stdout)
-l <name> Dumps the specified log (system, application, security)
-b Dumps a backup file (use -l to specify file name)
-m <name> Filters for events logged by name
-r Filters out events logged by name (must use -m too)
-s <servername> Remote to servername
-t Use tab to separate strings (default is space)
-c Use comma to separate fields
-ns Do not output strings
-format <fmt> Specify output format. Default format is
dtTCISucs
where
t - time
d - date
T - event type
C - event category
I - event ID
S - event source
u - user
c - computer
s - strings
LogParserµµ Âü°íÇϽöó.
2.17 sc - ¼ºñ½º ÄÁÆ®·Ñ·¯
¼ºñ½º ÄÁÆ®·Ñ ÇÁ·Î±×·¥. ¼ºñ½º¿Í °ü·ÃµÈ °ÅÀÇ ¸ðµç ±â´ÉÀ» ÀÌ¿ëÇÒ ¼ö ÀÖ´Ù.
Using SC.EXE to Develop Windows NT Services¿¡ º¸¸é ÀÚ¼¼ÇÑ »ç¿ë¹ýÀÌ ³ª¿ÍÀÖ´Ù.
| ¼ºñ½º ¼³Ä¡ | sc \\GAMESERVER create HubServer binPath= d:\cuvit\sbin\hubserver.exe |
| ¼ºñ½º Á¦°Å | sc \\GAMESERVER delete HubServer |
| ¼ºñ½º ½ÃÀÛ | sc \\GAMESERVER start HubServer |
| ¼ºñ½º ÁßÁö | sc \\GAMESERVER stop HubServer |
¼ºñ½º ¼³Ä¡½Ã binPath= µÚ¿¡ ÇÑÄ ¶ç¿ì´Â °ÍÀ» ÁÖÀÇ
2.18 net - °¢Á¾ ½Ã½ºÅÛ °ü¸®
¿Â°® Àâ´ÙÇÑ ±â´ÉÀÌ µé¾î°¡ ÀÖ´Â ÇÁ·Î±×·¥ÀÌ´Ù. net /?¸¦ ÀÔ·ÂÇØ º¸¸é »ç¿ë°¡´ÉÇÑ ¸í·É¾î°¡ ³ª¿Â´Ù.
NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]
°¢°¢ÀÇ ¸í·É¾î°¡ ¾î¶² ±â´ÉÀ» À§ÇÑ °ÍÀÎÁö ±â·ÏÇØ µÎÀÚ´Ï ±ÍÂú´Ù. ÀÏ´Ü ÀÚÁÖ »ç¿ëÇÏ´Â ±â´Éµé¸¸ ±â·ÏÇØ ³õÀÚ.
¼ºñ½º ½ÃÀÛ/Áß´Ü
NET START ¼ºñ½ºÀ̸§
NET STOP ¼ºñ½ºÀ̸§
XP ÀÌÈķδ SC.EXE°¡ ±âº»ÀûÀ¸·Î Æ÷ÇԵDZ⠶§¹®¿¡ º°·Î ¾µ ÀÏÀÌ ¾ø´Ù.
°øÀ¯ µð·ºÅ丮 ¿¬°á
NET USE \\Computer\Path ÆÐ½º¿öµå /USER:»ç¿ëÀÚÀ̸§
¾ÏÈ£¿Í »ç¿ëÀÚ À̸§ ºÎºÐÀº ¿¬°áÇÏ·Á´Â ÄÄÇ»ÅÍ¿¡ ÇöÀç »ç¿ëÀÚ¿Í °°Àº À̸§ÀÇ »ç¿ëÀÚ°¡ ÀÖÀ» °æ¿ì¿¡´Â »ý·« °¡´ÉÇÏ´Ù. ¹èÄ¡ ÆÄÀÏ·Î ¸¸µé¾î ½ÃÀÛ ÇÁ·Î±×·¥¿¡´Ù µî·ÏÇØ ³õÀ¸¸é, ´ë»ó ÄÄÇ»ÅÍ¿¡ Á¢±ÙÇÒ ¶§¸¶´Ù ¶ß´Â ·Î±×¿Â ÇÁ·ÒÇÁÆ®¸¦ ¾È ºÁµµ µÇ¹Ç·Î À¯¿ëÇÏ´Ù.
3 ½ºÅ©¸³Æ® ¶Ç´Â Àϰý ÆÄÀÏ¿¡¼ À¯¿ëÇÑ ÇÁ·Î±×·¥ ¹× ¸í·É¾îµé
3.1 call
ÇÑ Àϰý ÇÁ·Î±×·¥¿¡¼ ´Ù¸¥ Àϰý ÇÁ·Î±×·¥À» È£ÃâÇÕ´Ï´Ù.
3.2 choice
@ECHO OFFCHOICE /T 10 /C ync /N /CS /D y /M "Please type Y for YES, N for NO and C for CANCEL. (case-insensitive)."
IF %ERRORLEVEL% == 1 Echo "YES was selected"
IF %ERRORLEVEL% == 2 Echo "NO was selected"
IF %ERRORLEVEL% == 3 Echo "Cancel was selected"
IF %ERRORLEVEL% == 255 Echo "There was a serious problem."
3.3 cls
3.4 echo
¸Þ½ÃÁö¸¦ º¸¿©Áְųª, ¸í·É¾î ¹ÝÇâÀ» Åä±ÛÇÑ´Ù.
3.5 for
²Ï ÀÚÁÖ »ç¿ëÇÏ°Ô µÇ´Â ¸í·É¾îÀÌ´Ù.
- ƯÁ¤ ¹®ÀÚ¿À» ÁÖ¾îÁø seperator·Î ºÐ¸®Çؼ ±× °¢°¢ÀÇ Çʵ带 º¯¼ö·Î ¾×¼¼½ºÇϰųª...
- ƯÁ¤ µð·ºÅ丮 ³»ÀÇ ÆÄÀϵ鿡 ´ëÇØ¼ ÀÓÀÇÀÇ ¸í·ÉÀ» ¼öÇàÇϰųª...
- ÃʱⰪ, Áõ°¡°ª, ÃÖ´ë°ªÀ» ÁöÁ¤Çؼ ÁÖ¾îÁø Ƚ¼ö¸¸Å ƯÁ¤ ¸í·ÉÀ» ¹Ýº¹Çϰųª...
µîµî¿¡ ÀÌ¿ëÇÒ ¼ö ÀÕµû.
ƯÁ¤ µð·ºÅ丮 ÇÏÀ§¿¡ Á¸ÀçÇϴ ƯÁ¤ ÆÄÀϵ鿡 °¢°¢ ƯÁ¤ ¸í·É ¼öÇàÇϱâ
SET WORK_ROOT=D:\Cuvit\CuvitCore\
SET EXTENSIONS=*.h;*.cpp
FOR /R %WORK_ROOT% %%i IN (%EXTENSIONS%) DO "c:\Program Files\WinRAR\rar.exe" a test.rar %%i
3.6 forfiles
ÀÓÀÇÀÇ µð·ºÅ丮¿¡ Á¸ÀçÇÏ´Â ÆÄÀϵéÀ» ¸¶½ºÅ©¸¦ ÀÌ¿ëÇØ °Ë»öÇÑ ÈÄ, ±× °¢°¢ÀÇ ÆÄÀϵ鿡 ´ëÇØ ÁÖ¾îÁø ¸í·ÉÀ» ½ÇÇàÇÑ´Ù. ¹®Á¦´Â ¸í·ÉÀ» ÁÙ ¶§, ¹«Á¶°Ç CMD ÀÎÅÍÇÁ¸®Å͸¦ ÀÌ¿ëÇØ¼ ¸í·É¾î¸¦ Áà¾ßÇϴµ¥, CMD ÀÎÅÍÇÁ¸®ÅͰ¡ UNC ÆÐ½º¸¦ Áö¿øÇÏÁö ¾Ê´Â´Ù´Â °ÍÀÌ´Ù. °á±¹ ´Ù¸¥ ÄÄÇ»ÅÍ¿¡ ÀÖ´Â ÆÄÀϵéÀÇ ¸ñ·ÏÀ» »ý¼ºÇÑ ÈÄ¿¡ ÀÌµé ÆÄÀÏ¿¡ °¢°¢ ¾î¶² ¸í·ÉÀ» ½ÇÇàÇÏ´Â °ÍÀÌ ºÒ°¡´ÉÇÏ´Ù. FORFILES -p\\GAMESERVER -s -m*.log -c"CMD /C echo @FILE is a log file" ÀÌ·± Á¾·ùÀÇ ¸í·ÉÀÌ ºÒ°¡´ÉÇÏ´Ù´Â ¸»ÀÌ´Ù. ´Ù¸¥ ÄÄÇ»ÅÍ¿¡ Á¸ÀçÇÏ´Â ÆÄÀϵ鿡 ¾î¶² ¸í·ÉÀ» »ç¿ëÇÏ°í ½Í´Ù¸é FOR + WHERE Á¶ÇÕÀ» ÃßõÇÑ´Ù.
FORFILES -pc:\ -s -m*.BAT -c"CMD /C Echo @FILE is a batch file"
FORFILES -pc:\ -s -m*.* -c"CMD /C if @ISDIR==TRUE echo @FILE is a directory"
FORFILES -pc:\ -s -m*.* -d-100 -c"CMD /C Echo @FILE : date >= 100 days"
FORFILES -pc:\ -s -m*.* -d-01011993 -c"CMD /C Echo @FILE is quite old!"
FORFILES -pc:\ -s -m*.* -c"CMD /c echo extension of @FILE is 0x22@EXT0x22"
3.7 freedisk
ƯÁ¤ µå¶óÀ̺긦 Á¶»çÇØ¼, ÁÖ¾îÁø °ª¸¸ÅÀÇ ¿©À¯ °ø°£ÀÌ ÀÖÀ» °æ¿ì¿¡´Â 0À» ¸®ÅÏÇϰí, ¾øÀ» ¶§¿¡´Â 1À» ¸®ÅÏÇÑ´Ù.
freedisk drive (minimum bytes)
3.8 gettype
ƯÁ¤ ¸Ó½Å¿¡ ±ò·ÁÀÖ´Â OSÀÇ Á¾·ù¸¦ ·¹Áö½ºÆ®¸® °ªÀ» Á¶»çÇØ¼ ¹ÝȯÇÑ´Ù.
gettype [\\remotemachine] [/s]
/s for Silent Mode
Returns 1 for Windows NT Workstation.
Returns 2 for Windows 2000 Professional installation.
Returns 3 for Windows NT Server Non-Domain Controller.
Returns 4 for Windows 2000 Server Non-Domain Controller.
Returns 5 for Windows NT Server Domain Controller.
Returns 6 for Windows 2000 Server Domain Controller.
Returns 7 for Windows NT [Enterprise/Terminal] Server Domain Controller
Returns 8 for Windows NT [Enterprise/Terminal] Server Non-Domain Controller
3.9 goto
¹èÄ¡ ÆÄÀÏ ³»¿¡¼ À̸®Àú¸® À̵¿ÇÒ ¶§ ¾²ÀδÙ.
3.10 if
¹èÄ¡ ÆÄÀÏ¿¡¼ Á¶°Ç 󸮸¦ ¼öÇàÇÑ´Ù.
3.11 ifmember
ƯÁ¤ ±×·ì¿¡ ¼ÓÇØÀÖ´Â »ç¿ëÀÚ¸¦ Ãâ·ÂÇϰųª, ƯÁ¤ »ç¿ëÀÚ°¡ ¼ÓÇÑ ±×·ìµéÀ» Ç¥½ÃÇÑ´Ù.
3.12 pause
Àϰý ÇÁ·Î±×·¥ 󸮸¦ ÀÏ´Ü ÀϽà Á¤ÁöÇϰí, ´ÙÀ½ ¸Þ½ÃÁö¸¦ º¸¿©ÁØ´Ù.
°è¼ÓÇÏ·Á¸é ¾Æ¹« Ű³ª ´©¸£½Ê½Ã¿À . . .
3.13 prompt
cmd.exe ¸í·É ÇÁ·ÒÇÁÆ®¸¦ ¹Ù²Û´Ù.
3.14 rem
Àϰý ÆÄÀÏ ¶Ç´Â CONFIG.SYS ÆÄÀÏ¿¡¼ ÁÖ¼®À» ±â·ÏÇÒ ¶§ ¾²ÀδÙ.
rem À̰ÍÀº ÁÖ¼®ÀÌ´Ù.
3.15 set
ȯ°æ º¯¼ö¸¦ Ãâ·Â, ¼³Á¤, Á¦°ÅÇÑ´Ù.
3.16 setlocal...endlocal
Àϰý ÆÄÀÏ¿¡¼ ȯ°æ º¯°æÀÇ Áö¿ªÈ¸¦ ½ÃÀÛÇÑ´Ù. setlocal ÀÌ ½ÃÀÛµÈ ÈÄ ÀÏ¾î³ È¯°æ º¯°æÀº Àϰý ÆÄÀÏ¿¡¸¸ À¯È¿ÇÏ´Ù. ÀÌÀü ¼³Á¤À¸·Î º¹±¸ÇÏ·Á¸é endlocalÀ» »ç¿ëÇØ¾ß ÇÑ´Ù. ¹èÄ¡ ½ºÅ©¸³Æ® ³¡¿¡ µµ´ÞÇϸé, ¾Ï½ÃÀûÀÎ endlocalÀÌ ¹èÄ¡ ½ºÅ©¸³Æ®°¡ ¸¸µç ¸ðµç Ưº°ÇÑ setlocal ¸í·É¾î¸¦ »èÁ¦ÇÏ°Ô µÈ´Ù.
3.17 shift
Àϰý ÆÄÀÏ¿¡¼ ¹Ù²Ü ¼ö ÀÖ´Â ¸Å°³ º¯¼öÀÇ À§Ä¡¸¦ ¹Ù²ß´Ï´Ù.
3.18 sleep
sleep time-to-sleep-in-seconds
3.19 timeout
TIMEOUT - This utility is similar to the DOS PAUSE command. However, it
accepts a timeout parameter to specify a length of wait (in seconds)
at which time it will continue without a key press.
Written by Eric Brown, Business System Division.
Copyright (C) Microsoft Corporation, 1992-1995.
Usage - TIMEOUT <###>
where <###> is a decimal number of seconds between -1 and 100000.
The value -1 means to wait indefinitely for a key hit.
3.20 waitfor
waitfor [-t <timeout>] [-s] <signal name>
Wait until the 'signal' is given across the net.
Parameters:
-t timeout Number of seconds to wait. Default is forever.
-s Send signal instead of waiting.
Only one 'waitfor' can wait on a given signal on a given machine.
4 Run ¸Þ´º¸¦ ÅëÇØ ½ÇÇàÇÒ ¼ö ÀÖ´Â ¸í·É¾îµé
| To Access | Run Command |
| Accessibility Controls | access.cpl |
| Add Hardware Wizard | hdwwiz.cpl |
| Add/Remove Programs | appwiz.cpl |
| Administrative Tools | control admintools |
| Automatic Updates | wuaucpl.cpl |
| Bluetooth Transfer Wizard | fsquirt |
| Calculator | calc |
| Certificate Manager | certmgr.msc |
| Character Map | charmap |
| Check Disk Utility | chkdsk |
| Clipboard Viewer | clipbrd |
| Command Prompt | cmd |
| Component Services | dcomcnfg |
| Computer Management | compmgmt.msc |
| Date and Time Properties | timedate.cpl |
| DDE Shares | ddeshare |
| Device Manager | devmgmt.msc |
| Direct X Control Panel (If Installed)* | directx.cpl |
| Direct X Troubleshooter | dxdiag |
| Disk Cleanup Utility | cleanmgr |
| Disk Defragment | dfrg.msc |
| Disk Management | diskmgmt.msc |
| Disk Partition Manager | diskpart |
| Display Properties | control desktop |
| Display Properties | desk.cpl |
| Display Properties (w/Appearance Tab Preselected) | control color |
| Dr. Watson System Troubleshooting Utility | drwtsn32 |
| Driver Verifier Utility | verifier |
| Event Viewer | eventvwr.msc |
| File Signature Verification Tool | sigverif |
| Findfast | findfast.cpl |
| Folders Properties | control folders |
| Fonts | control fonts |
| Fonts Folder | fonts |
| Free Cell Card Game | freecell |
| Game Controllers | joy.cpl |
| Group Policy Editor (XP Prof) | gpedit.msc |
| Hearts Card Game | mshearts |
| Iexpress Wizard | iexpress |
| Indexing Service | ciadv.msc |
| Internet Properties | inetcpl.cpl |
| IP Configuration (Display Connection Configuration) | ipconfig /all |
| IP Configuration (Display DNS Cache Contents) | ipconfig /displaydns |
| IP Configuration (Delete DNS Cache Contents) | ipconfig /flushdns |
| IP Configuration (Release All Connections) | ipconfig /release |
| IP Configuration (Renew All Connections) | ipconfig /renew |
| IP Configuration (Refreshes DHCP & Re-Registers DNS) | ipconfig /registerdns |
| IP Configuration (Display DHCP Class ID) | ipconfig /showclassid |
| IP Configuration (Modifies DHCP Class ID) | ipconfig /setclassid |
| Java Control Panel (If Installed) | jpicpl32.cpl |
| Java Control Panel (If Installed) | javaws |
| Keyboard Properties | control keyboard |
| Local Security Settings | secpol.msc |
| Local Users and Groups | lusrmgr.msc |
| Logs You Out Of Windows | logoff |
| Microsoft Chat | winchat |
| Minesweeper Game | winmine |
| Mouse Properties | control mouse |
| Mouse Properties | main.cpl |
| Network Connections | control netconnections |
| Network Connections | ncpa.cpl |
| Network Setup Wizard | netsetup.cpl |
| Notepad | notepad |
| Nview Desktop Manager(If Installed) | nvtuicpl.cpl |
| Object Packager | packager |
| ODBC Data Source Administrator | odbccp32.cpl |
| On Screen Keyboard | osk |
| Opens AC3 Filter (If Installed) | ac3filter.cpl |
| Password Properties | password.cpl |
| Performance Monitor | perfmon.msc |
| Performance Monitor | perfmon |
| Phone and Modem Options | telephon.cpl |
| Power Configuration | powercfg.cpl |
| Printers and Faxes | control printers |
| Printers Folder | printers |
| Private Character Editor | eudcedit |
| Quicktime (If Installed) | quicktime.cpl |
| Regional Settings | intl.cpl |
| Registry Editor | regedit |
| Registry Editor | regedit32 |
| Remote Desktop | mstsc |
| Removable Storage | ntmsmgr.msc |
| Removable Storage Operator Requests | ntmsoprq.msc |
| Resultant Set of Policy (XP Prof) | rsop.msc |
| Scanners and Cameras | sticpl.cpl |
| Scheduled Tasks | control schedtasks |
| Security Center | wscui.cpl |
| Services | services.msc |
| Shared Folders | fsmgmt.msc |
| Shuts Down Windows | shutdown |
| Sounds and Audio | mmsys.cpl |
| Spider Solitare Card Game | spider |
| SQL Client Configuration | cliconfg |
| System Configuration Editor | sysedit |
| System Configuration Utility | msconfig |
| System File Checker Utility (Scan Immediately) | sfc /scannow |
| System File Checker Utility (Scan Once At Next Boot) | sfc /scanonce |
| System File Checker Utility (Scan On Every Boot) | sfc /scanboot |
| System File Checker Utility (Return to Default Setting) | sfc /revert |
| System File Checker Utility (Purge File Cache) | sfc /purgecache |
| System File Checker Utility (Set Cache Size to size x) | sfc /cachesize=x |
| System Properties | sysdm.cpl |
| Task Manager | taskmgr |
| Telnet Client | telnet |
| User Account Management | nusrmgr.cpl |
| Utility Manager | utilman |
| Windows Firewall | firewall.cpl |
| Windows Magnifier | magnify |
| Windows Management Infrastructure | wmimgmt.msc |
| Windows System Security Tool | syskey |
| Windows Update Launches | wupdmgr |
| Windows XP Tour Wizard | tourstart |
| Wordpad | write |
5 ¹èÄ¡ ÆÄÀÏ ÆÄ¶ó¹ÌÅÍ
¾Æ·¡¿¡¼ ´ë¹®ÀÚ NÀº Àμö ¹øÈ£¸¦ ÀǹÌÇÑ´Ù. ¹èÄ¡ ÆÄÀÏ ÀÚü´Â 0¹øÀÌ´Ù.
| ÆÄ¶ó¹ÌÅÍ | ±â´É | ¿¹ |
| %~fN | Àüü ¹®ÀÚ¿. | C:\utils\MyFile.txt |
| %~dN | µå¶óÀ̺ê À̸§. | C: |
| %~pN | µå¶óÀ̺긦 Á¦¿ÜÇÑ µð·ºÅ丮 ¹®ÀÚ¿. | \utils\ |
| %~nN | ÆÄÀÏ À̸§ ¶Ç´Â ¸¶Áö¸· µð·ºÅ丮 ¹®ÀÚ¿. | MyFile.txt |
| %~xN | È®ÀåÀÚ | .txt |
| %~sN | f, n, x À̸§À» 8.3 Çü½ÄÀ¸·Î ¹ÝȯÇÑ´Ù. | |
¿©·¯ °³ÀÇ ÆÄ¶ó¹ÌÅ͸¦ Çϳª·Î Á¶ÇÕÇÒ ¼öµµ ÀÖ´Ù. ¿¹¸¦ µé¾î %~dp0 ´Â ¹èÄ¡ ÆÄÀÏÀÌ ÀÖ´Â µå¶óÀ̺ê + µð·ºÅ丮¸¦ ¹ÝȯÇÑ´Ù.
6 ¸µÅ©
7 ´Ù¿î·Îµå
choice.rar
¿ØÁö ¸ð¸£°ÚÁö¸¸, À©µµ¿ìÁî XP¿¡´Â ¾ø´Ù. XP ¸®¼Ò½º Ŷ ³»ºÎ¿¡µµ ¾ø´Ù. ±×·¡¼ À©µµ¿ìÁî 2000¿ëÀ» ¿Ã·ÁµÐ´Ù.
clip.rar
¿ØÁö ¸ð¸£°ÚÁö¸¸, À©µµ¿ìÁî XP¿¡´Â ¾ø´Ù. XP ¸®¼Ò½º Ŷ ³»ºÎ¿¡µµ ¾ø´Ù. ±×·¡¼ À©µµ¿ìÁî 2000¿ëÀ» ¿Ã·ÁµÐ´Ù.
SeriousMoin v1 (koMoinMoin 1.0a4 Modified)