> set f=%$FILE% > set g=%%~nf > echo %g% ä¸ã®ã¹ã¯ãªããã¯ãä¸è¨ã«è¼ã£ã¦ãããããªãããããã¡ã¤ã«ã®ãã©ã¡ã¿ä¿®é£¾åãåèã«ãªãããã¨ãæãã¾ãã http://ykr414.com/dos/bat.html#05 ãããã¯ãããããã¡ã¤ã«èµ·åæã«ä¸ãããããã©ã¡ã¿ã«å¯¾ãã修飾åã§ããããããå¤æ°ã«å¯¾ãããã®ã§ã¯ããã¾ããã ããã§ã¯ã batch01.bat 㨠batch02.bat ã¨ããäºã¤ã®ã¹ã¯ãªãããä½æãã¾ãã batch02.bat ã§ã¯ã @echo off echo %~n1%~x1 batch01.bat ã§ã¯ã @echo off call test02.bat "%$FILE%" 以ä¸ã®ããã«ããã°ãã$FILE å¤æ°ããbatch02.bat ã®ç¬¬ä¸ãã©ã¡ã¿ã¨ãã¦ä¸ããããã®ã§ãããããã©ã¡ã¿ä¿®é£¾åã§å解ããã°ããã¡ã¤ã«åã
{{#tags}}- {{label}}
{{/tags}}