1588, 1/80 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   qkreoghks00
   http://hackerschool.org
   batchÆÄÀÏ ¸¸µé±â - 1. Ãʺ¸ ¿¬½À

http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Lectures&no=897 [º¹»ç]


¹èÄ¡ÆÄÀÏÀÌ ¹ºÁö ¾Æ½Ê´Ï±î?

¹èÄ¡ÆÄÀÏÀº À©µµ¿ìÁî»ó¿¡¼­ ¾ÆÀÌÄÜ À̸§ÀÌ 'MS-DOSÀÏ°ýÆÄÀÏ'À̶ó´Â ÆÄÀÏÀÔ´Ï´Ù

¸¸¾à µµ½ºÀÇ ¸í·É¾î¸¦ ÆÄÀÏ·Î ¸¸µé°í ½ÍÀ» ¶§°¡ ÀÖÀ» °ÍÀÔ´Ï´Ù.

¹Ù·Î µµ½ºÀÇ ¸í·É¾î¸¦ ÆÄÀÏ·Î ¸¸µç°Ô ¹èÄ¡ÆÄÀÏÀÔ´Ï´Ù.

¹èÄ¡ÆÄÀÏ ¸¸µå´Â ¹ýÀº ¾ÆÁÖ ½±½À´Ï´Ù

¸Þ¸ðÀåÀ¸·Î ¸¸µç µÚ ÀúÀåÇÒ¶§ .bat¸¦ ºÙ¿©ÁÖ¸é µË´Ï´Ù



¸¸µå´Â ¹ý***


@echo off

cmd | [¸í·É¾î]

pause


ÀÌ°Ô ³¡ÀÔ´Ï´Ù

¹°·Ð ¹èÄ¡ÆÄÀÏÀ» ¸¸µé¶§µµ ¿©·¯°¡Áö ¸í·É¾î°¡ ÀÖ½À´Ï´Ù

±×·¸Áö¸¸ ¿ì¼± ±×°Ç Á¢¾îµÎ°í °£´ÜÈ÷ ¸¸µå´Â °ÍºÎÅÍ ¹è¿öº¾½Ã´Ù

¿ì¼± ¹èÄ¡ÆÄÀÏÀ» ¸¸µé¶§´Â ù¸Ó¸®¿¡ @echo off¸¦ ºÙ¿©ÁÖ°Ô µË´Ï´Ù

ÀÌ°Ç º¹Ã¢ÇÏÁö ¸»¶ó´Â ¸í·É¾îÀε¥

ÀÚ¼¼ÇÏ°Ô ¼³¸íÇÏÀÚ¸é


echo off´Â ¸í·É¾îÀÇ °á°ú¸¸À» Ãâ·ÂÇ϶ó´Â ¸í·É¾îÀÔ´Ï´Ù

±×·±µ¥ echo off ÀÚüµµ ÇϳªÀÇ ¸í·ÉÀ̱⠶§¹®¿¡ ÀÌ echo off ¸í·É ÀÚü°¡ È­¸é¿¡ ¾µµ¥¾øÀÌ Ãâ·ÂµË´Ï´Ù.

¹èÄ¡ ÆÄÀÏ¿¡¼­´Â ¾î¶² ¸í·É¾î ¾Õ¿¡ °ñ¹ðÀÌ(@)¸¦ Çϳª ºÙÀÌ¸é ±× ¸í·É¾î¿¡ ´ëÇØ 'º¹Ã¢'ÇÏÁö ¸»¶ó´Â ÀǹÌÀ̱⠶§¹®¿¡

@echo off ¶ó°í ÇÏ¸é ¿Ïº®ÇÏ°Ô ¸ðµç º¹Ã¢À» ±ÝÁö½Ãų ¼ö ÀÖ½À´Ï´Ù.

±×·¯´Ï±î ½±°Ô ¸»Çϸé @echo off ´Â ±× ¸í·ÉÀ» ½ÇÇàÇÑ ÈÄ °á°ú¸¸À» Ãâ·ÂÇ϶ó´Â ¸í·ÉÀÌÁÒ.

¾î¶² °æ¿ì¿¡´Â @echo on À̶ó Çؼ­ ÀϺη¯¶óµµ º¹Ã¢À» ÇؾßÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù

±×¸®°í @echo off ¿Í @echo onÀº ²À ùÁÙ¿¡ ¿ÀÁö ¾Ê¾Æµµ µË´Ï´Ù

±×·¯¹Ç·Î ÀÌ°É È°¿ëÇؼ­ ¾ðÁ¦µçÁö º¹Ã¢ÇÏ°í º¹Ã¢ÁßÁö¸¦ ÇÒ ¼ö ÀÖÁÒ

¾Æ¹«Æ° @echo off´Â ¾È½áÁ൵ »ó°ü ¾øÁö¸¸ ¿¹¸¦ µé¾î ¼³¸íÇÏ°Ú½À´Ï´Ù

0.bat -> @echo off ¾È½áÁØ dir¸í·É ¹èÄ¡ÆÄÀÏ
1.bat -> @echo off ½áÁØ dir¸í·É ¹èÄ¡ÆÄÀÏ

C:\>0.bat

C:\>dir

   C µå¶óÀÌºê º¼·ý: LOCAL
   º¼·ý ÀϷùøÈ£: 2454-59D7

   C: µð·ºÅ͸®

   ...
   ...


ÀÌ·±½ÄÀ¸·Î ³ª¿ÀÁö¸¸

C:\>1.bat

   C µå¶óÀÌºê º¼·ý: LOCAL
   º¼·ý ÀϷùøÈ£: 2454-59D7

   C: µð·ºÅ͸®

   ...
   ...

ÀÌ·¸°Ô µÇ´Â °ÍÀÔ´Ï´Ù

Çʿ伺À» ¸ø´À³¢½Ã°ÚÁö¸¸ ³ªÁß¿¡ ¸í·É¾î¸¦ ¸¹ÀÌ ¾Ë°Ô µÇ¾î º¹ÀâÇÑ ±¸¹®À» ½á¾ßÇϰųª

¹º°¡¸¦ Á¦ÀÛÇÏ·Á°í ÇÑ´Ù¸é ÇÊ¿äÇÏ°Ô µÉ °ÍÀÔ´Ï´Ù.



±×¸®°í ±×´ÙÀ½ cmd |(ÀÌ°Ç '¹Ù'Àε¥ \¿Í shiftÅ°¸¦ °°ÀÌ ´©¸£¸éµË´Ï´Ù)¸¦ ¾²°í

±× ¿·¿¡ ÇÑÄ­ ¶ç¿î ÈÄ ¸í·É¾î¸¦ ÀÔ·ÂÇÏ°í ÀúÀåÇÏ¸é µË´Ï´Ù

(cmd | ¸¦ ²À ¾²Áö ¾Ê¾Æµµ µË´Ï´Ù ±×·±µ¥ °æ¿ì¿¡ µû¶ó¼­´Â ½á¾ßÇÕ´Ï´Ù ±×°Ç ³ªÁß¿¡ ¸»Çϱâ·Î ÇÏÁÒ)

pause(Æ÷Áî)´Â ¹»±î¿ä? ÀÌ°Ç C¾ð¾î¿¡¼­ÀÇ ½Ã½ºÅÛÇÔ¼ö system("PAUSE");¿Í °°Àº ÀǹÌÀÇ ¸í·É¾îÀÔ´Ï´Ù.

Áï ÀÌ°É ½á³ÖÀ¸¸é °á°ú¸¦ ¸ðµÎ Ãâ·ÂÇÑ ÈÄ Press any key to continue¶ó°í Çϸ鼭 Çѹø ¸ØÃß°Ô µË´Ï´Ù



´Ù½ÃÇѹø Á¤¸®ÇÏÀÚ¸é


@echo off                 <¤Ñ °á°ú°ª¸¸ Ãâ·ÂÇ϶ó´Â ¸í·É¾î

cmd | [¸í·É¾î]            <¤Ñ ¸í·ÉÀ» ³Ö´Â ºÎºÐ

pause                     <¤Ñ Çѹø ¸ØÃ߶ó´Â ¸í·É¾î



¸¸¾à¿¡ ¹èÄ¡ÆÄÀÏÀ» ½ÇÇàÇÑ ÈÄ ¸í·É ½ÇÇàÇÏ°í ¹Ù·Î ²ô°í ½Í´Ù¸é?

±×·²¶§´Â start¸¦ ¾²¸é µË´Ï´Ù

¿¹¸¦µé¾î dirÀ» ¾²°í âÀ» ´Ý°í ½Í´Ù¸é

@echo off

start dir

ÀÌ·¸°Ô ¸¸µé¸é µË´Ï´Ù.





ex)netstat -na¸¦ ¹èÄ¡ÆÄÀÏ·Î ¸¸µé¾î¼­ ½ÇÇàÇϱâ

¸Þ¸ðÀå ->

@echo off

cmd | netstat -na

pause





  Hit : 27264     Date : 2007/11/18 03:23



    
qkreoghks00 Âü°í·Î À̰͵µ ¸í·É¾î¸¦ ¸¹ÀÌ ÀÍÈ÷¸é ¹ÙÀÌ·¯½º¸¦ ¸¸µé ¼ö ÀÖ½À´Ï´Ù ¤Ñ,.¤Ñ 2007/11/18  
LinuxKuro ´©°¡.. ¿äÁò ¹èÄ¡ÆÄÀÏÀ» »ç¿ëÇÒ·±Áö 2008/06/05
     [°øÁö] °­Á¸¦ ¿Ã¸®½Ç ¶§´Â ¸»¸Ó¸®¸¦ ´Þ¾ÆÁÖ¼¼¿ä^¤Ñ^ [29] ¸Û¸Û 02/27 19237
1587   netdiscover ÆÄÀ̽ãÀ¸·Î ±¸ÇöÇϱ⠠   ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 161
1586   ÆÄÀ̽ãÀ» ÀÌ¿ëÇÑ ½ÉÇà À¥ Å©·Ñ·¯     ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 130
1585   ÆÄÀ̽ã random¸ðµâÀ» ÀÌ¿ëÇÑ ¼ýÀÚ¸ÂÃ߱⠰ÔÀÓ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/30 643
1584   ÆÄÀ̽ã äÆà ÇÁ·Î±×·¥ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/28 556
1583   ÆÄÀ̽㠼ÒÄÏ ÇÁ·Î±×·¡¹ÖÀÇ ±âÃÊ     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/26 579
1582   ¸®´ª½º À¥ ·Î±× ºÐ¼®     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 442
1581   ¸®´ª½º/À©µµ¿ì º¸¾È Àåºñ ·Î±×     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 543
1580   °í¼ö´ÔµéÀÇ µµ¿òÀ» ¹Þ°í ½Í½À´Ï´Ù     vbnm111
02/11 692
1579   ¸®´ª½º Ä¿³Î 2.6 ¹öÀü ÀÌÈÄÀÇ LKM     jdo
07/25 1211
1578   ½©ÄÚµå ¸ðÀ½     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/15 2052
1577   Call by value VS Call by Reference     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/15 1401
1576   (²Ä¼ö) L.O.B Çѹ濡 Ŭ¸®¾îÇϱâ[2]     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/14 1798
1575   towelroot.c (zip) ÄÚ¸àÆÃ.[1]     scube
08/18 4330
1574   levitator.c (¾Èµå·ÎÀÌµå ·çÆÃ) °ø°Ý ºÐ¼® ¼Ò½º ÄÚµå °øÀ¯.[4]     scube
08/17 4178
1573   ¹«·á Á¤º¸º¸¾È ±â¼úÀÎÀç ¾ç¼º °úÁ¤ ±³À°»ý ¸ðÁý     chanjung111
06/17 5044
1572   K-Shield ÁִϾî 5±â ¸ðÁý     lrtk
06/17 4745
1571   [ÆÁ] ÆÄÀ̽ã 2¼Ò½º¸¦ 3À¸·Î º¯°æÇØÁÖ´Â »çÀÌÆ®[3]     ÇѽÂÀç
05/13 4428
1570   ±¸±Û ¹é¸µÅ© ÀÛ¾÷ Áú¹®¿ä     wkatnxka
03/30 3831
1569   [ÆÁ] ¿ìºÐÅõ ¹Ì·¯¸µ¼­¹ö     ÇѽÂÀç
03/09 4554
1 [2][3][4][5][6][7][8][9][10]..[80]

Copyright 1999-2024 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org