¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS

¥Ð¥Ã¥Á¥Õ¥¡¥¤¥ë

Last-modified: 2018-11-14 (¿å) 15:24:13 (2186d)
Top / ¥Ð¥Ã¥Á¥Õ¥¡¥¤¥ë

¤ª´«¤á²èÌÌ¿§

Ãí°Õ¡Ê¹õÃϤ˲«¿§¡Ë

color 0e

¥¨¥é¡¼¡Ê¹õÃϤËÀÖ¡Ë

color 0c

¥á¥Ë¥å¡¼¤Ç»È¤¦¤È¤­¤ì¤¤¤Ê¿§¡ÊÇòÃϤËÀÄ¡Ë

color f1

¤½¤Î¾£±¡Ê¹õÃϤËÎСË

color 0a

¤½¤Î¾£²¡Ê¹õÃϤ˿忧¡Ë

color 0b

¿§¤ò¸µ¤ËÌ᤹

color
0:¹õ8:°Å¤¤³¥¿§
1:°Å¤¤ÀÄ9:ÀÄ
2:°Å¤¤ÎÐa:ÎÐ
3:°Å¤¤¿å¿§b:¿å¿§
4:°Å¤¤ÀÖc:ÀÖ
5:°Å¤¤»çd:»ç
6:°Å¤¤²«¿§e:ÌÀ¤ë¤¤²«¿§
7:³¥¿§f:Çò

¥Ð¥Ã¥Á¤ò»È¤Ã¤¿·×»»ÊýË¡

 : ¼¡¤Î¤è¤¦¤Ë·×»»¼°¤Î·×»»·ë²Ì¤òÊÑ¿ô¤ËÆþ¤ì¤Þ¤¹¡£%_y%¤Î¤è¤¦¤ËÊÑ¿ô¤â»È¤¨¤Þ¤¹¡£
 set /a _x=(3+6)*2
 echo [%_x%]
 : »È¤ï¤Ê¤¯¤Ê¤Ã¤¿¤é¡¢ÊÑ¿ô¤Ï̤»ÈÍѤËÌᤷ¤Þ¤¹¡£
 set _x=
 echo [%_x%]

¥Ñ¥¹¤ÎÃí°Õ»ö¹à

XP¤È°ã¤Ã¤ÆWindows 7(¤ª¤½¤é¤¯Vista¤«¤é)¤Ç¤Ï°ú¿ô¤Î¥Õ¥¡¥¤¥ë¤Ï¥Ð¥Ã¥Á¤¬ÃÖ¤¤¤Æ¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê¤È¤Ê¤ë¤è¤¦¤Ç¤¹¡£

Î㤨¤ÐC:\bat\wz.bat¤¬¼¡¤È¤·¤Æ¡¢

: WZ Editorµ¯Æ°¥Ð¥Ã¥Á
@call "C:\Program Files (x86)\WZ EDITOR 6\wzeditor.exe" %1

¼¡¤Î¤è¤¦¤Ëµ¯Æ°¤¹¤ë¤È¡¢µ¯Æ°¤·¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ê¤¯¥Ð¥Ã¥Á¤¬ÃÖ¤¤¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ÎC:\bat\tmp.txt¤¬³«¤­¤Þ¤¹¡£

C:\work>wz tmp.txt

¤³¤ì¤òËɤ°¤¿¤á¤Ë¤Ïwz.bat¤ò¼¡¤Î¤è¤¦¤Ëµ­½Ò¤·¤Þ¤¹¡£

: WZ Editorµ¯Æ°¥Ð¥Ã¥Á
@call "C:\Program Files (x86)\WZ EDITOR 6\wzeditor.exe" %~f1
½¤¾þ»Òµ¡Ç½¡¦ÍÑÅÓ
%~1Á´¤Æ¤Î°úÍѶç¡Ê"¡Ë¤òºï½ü¤·¤Æ%1¤òŸ³«¤¹¤ë¡£
%~f1%1¤ò´°Á´½¤¾þ¥Ñ¥¹Ì¾¤ËŸ³«¤¹¤ë¡£
%~d1%1¤ò¥É¥é¥¤¥Ö̾¤À¤±¤ËŸ³«¤¹¤ë¡£
%~p1%1¤ò¥Ñ¥¹¤À¤±¤ËŸ³«¤¹¤ë¡£
%~n1%1¤ò¥Õ¥¡¥¤¥ë̾¤À¤±¤ËŸ³«¤¹¤ë¡£
%~x1%1¤ò¥Õ¥¡¥¤¥ë³ÈÄ¥»Ò¤À¤±¤ËŸ³«¤¹¤ë¡£
%~s1Ÿ³«¤µ¤ì¤¿¥Ñ¥¹¤ÏMS-DOS¤Î¡Ö£¸.£³·Á¼°¡×¤Ç¤âû¤¤Ì¾Á°¤À¤±¤ò´Þ¤à¡£
%~a1%1¤ò¥Õ¥¡¥¤¥ë°À­¤ËŸ³«¤¹¤ë¡£
%~t1%1¤ò¥Õ¥¡¥¤¥ë¤ÎÆüÉÕ¡¦»þ¹ï¤ËŸ³«¤¹¤ë¡£
%~z1%1¤ò¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¤ËŸ³«¤¹¤ë¡£
%~$PATH:1PATH´Ä¶­¤Ë»ØÄꤵ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ò¸¡º÷¤·¡¢ºÇ½é¤Ë¸«¤Ä¤«¤Ã¤¿´°Á´½¤¾þ̾¤Ë%1¤òŸ³«¤¹¤ë¡£´Ä¶­ÊÑ¿ô̾¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¤Þ¤¿¸¡º÷¤·¤Æ¤â¥Õ¥¡¥¤¥ë¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢¤³¤Î½¤¾þ»Ò¤ò»ØÄꤹ¤ë¤È¶õ¤Îʸ»úÎó¤ËŸ³«¤¹¤ë¡£

TIPS

  • ²þ¹Ô¤¹¤ëÊýË¡
    echo;
  • Æü»þ¤ò½ÐÎϤ¹¤ëÊýË¡
    echo %date% %time%
  • DOS¥¦¥¤¥ó¥É¥¦¤ò³«¤«¤º¤Ë¥Ð¥Ã¥Á¤òµ¯Æ°¤¹¤ëÊýË¡ foo.vbs
    Set ws = CreateObject("Wscript.Shell") 
    ws.run "cmd /c ¥Ð¥Ã¥Á¥Õ¥¡¥¤¥ë̾.bat",vbhide

¥ê¥ó¥¯

źÉÕ¥Õ¥¡¥¤¥ë

batch_menu.bat¥á¥Ë¥å¡¼É½¼¨¥µ¥ó¥×¥ë

źÉÕ¥Õ¥¡¥¤¥ë: filebatch_menu.bat 301·ï [¾ÜºÙ]