开发者

How to trim the file extension and save it to another variable in bat?

开发者 https://www.devze.com 2023-02-16 21:26 出处:网络
Here\'s the mlexe.bat: ML /Zi /c /Fl /coff %1.asm LINK /subsystem:console %1.obj It can be used this way:

Here's the mlexe.bat:

ML /Zi /c /Fl /coff %1.asm
LINK /subsystem:console %1.obj

It can be used this way:

mlexe hello

But I want it to wor开发者_如何学运维k this way:

mlexe hello.asm

How to modify it?


See using batch parameters, you need %~n1.

0

精彩评论

暂无评论...
验证码 换一张
取 消