¥Ð¥Ã¥Á¥Õ¥¡¥¤¥ë
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:1 | PATH´Ä¶¤Ë»ØÄꤵ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ò¸¡º÷¤·¡¢ºÇ½é¤Ë¸«¤Ä¤«¤Ã¤¿´°Á´½¤¾þ̾¤Ë%1¤òŸ³«¤¹¤ë¡£´Ä¶ÊÑ¿ô̾¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¤Þ¤¿¸¡º÷¤·¤Æ¤â¥Õ¥¡¥¤¥ë¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢¤³¤Î½¤¾þ»Ò¤ò»ØÄꤹ¤ë¤È¶õ¤Îʸ»úÎó¤ËŸ³«¤¹¤ë¡£ |
TIPS †
- ²þ¹Ô¤¹¤ëÊýË¡
echo;
- Æü»þ¤ò½ÐÎϤ¹¤ëÊýË¡
echo %date% %time%
- DOS¥¦¥¤¥ó¥É¥¦¤ò³«¤«¤º¤Ë¥Ð¥Ã¥Á¤òµ¯Æ°¤¹¤ëÊýË¡
foo.vbs
Set ws = CreateObject("Wscript.Shell") ws.run "cmd /c ¥Ð¥Ã¥Á¥Õ¥¡¥¤¥ë̾.bat",vbhide
¥ê¥ó¥¯
- ¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤ò»È¤Ã¤Æ¤ß¤è¤¦ ³Æ¥³¥Þ¥ó¥É¤Î¥ê¥Õ¥¡¥ì¥ó¥¹¡Ê¸«¤ä¤¹¤¤¤Ç¤¹¡Ë
- [¥Ñ¥½¥³¥óFAQ]¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È ɸ½à¥³¥Þ¥ó¥É ³Æ¥³¥Þ¥ó¥É¤Î¥ê¥Õ¥¡¥ì¥ó¥¹¡Ê¥³¥Þ¥ó¥É¿ô¤¬Â¿¤¤¤Ç¤¹¡Ë
- [¤¦¤º¤éµ»½Ñ¥á¥â]bat¥Õ¥¡¥¤¥ë¤Ë¤è¤ëFTP¼«Æ°¼Â¹Ô¡ÊWindows¥¿¥¹¥¯¡Ë
źÉÕ¥Õ¥¡¥¤¥ë
batch_menu.bat | ¥á¥Ë¥å¡¼É½¼¨¥µ¥ó¥×¥ë |