Execute a command for all files in a folder

前端 未结 1 572
醉酒成梦
醉酒成梦 2021-01-20 11:27

I want to run a command on all files in a directory. For %%1 in (c\\conversion*.ajt) do convert command %%1 %%2 However I need to have an output filename the sa

1条回答
  •  北海茫月
    2021-01-20 11:59

    Try this:

    for %%i in (*.ajt) do "asciitojt.exe" "%%~i" "%%~ni.jt"
    

    Start in the folder with the *.ajt files.

    0 讨论(0)
提交回复
热议问题