【发布时间】:2014-03-28 07:37:15
【问题描述】:
所以我正在编写一个与 CURL 一起使用的简短 CMD 脚本,但遇到了一个我似乎无法通过 Google 解决的问题。
我想要的是根据其他变量的名称获取一个变量,例如:
@echo off
SET Example1 = Test1
SET Example2 = Test2
SET Example3 = Test3 (The variable data isn't this similar ofc)
...
FOR %%G in (1,2,3) DO (
...
*This is where I want to Echo out Something like Example%%G*
)
只是使用
Echo Example%%G
不起作用,我似乎在网上找不到任何东西。
【问题讨论】:
标签: batch-file cmd