开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜