开发者

how to combine two variables in cmd.exe script

In a cmd.exe script on Windows 7, I want to combine two variables to set a 开发者_StackOverflow社区third.

Eg. (which doesn't work)

SET THIRD=%FIRST%%SECOND%

How can I do this ?


Apologies to everyone who even looked at this question. The example above works perfectly and I cannot reproduce the problem I was having. Thanks for pointing out my error.


With quotes?

SET "THIRD=%FIRST%%SECOND%"
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜