开发者

How to SET a VARIABLE while running a Batch file

开发者 https://www.devze.com 2023-03-05 14:14 出处:网络
I would 开发者_Python百科like to know how to SET a variable in a batch file while it is running E.g.

I would 开发者_Python百科like to know how to SET a variable in a batch file while it is running

E.g.

Enter variable name: test

Then I can call this variable later on e.g. %test%


Try this:

SET /P TEST=Enter variable name:
0

精彩评论

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