例
- Command Prompt
C:\>dir /b *.txt aaa.txt bbb.txt ccc.txt C:\>type expansion.cmd @Echo.%* C:\>expansion.cmd *.txt *.txt C:\>
対処
For 文のファイル名展開機能を使う
- Command Prompt
C:\>type expansion.cmd @For %%i In (%*) Do @Echo.%%i C:\>expansion.cmd *.txt aaa.txt bbb.txt ccc.txt C:\>