开发者

how to combine two variables in cmd.exe script

开发者 https://www.devze.com 2023-01-26 03:03 出处:网络
In a cmd.exe script on Windows 7, I want to combine two variables to set a 开发者_StackOverflow社区third.

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

精彩评论

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

关注公众号