是否有可能做这样的事情?是否可以设置动态变量名称?
set wordNum=1
set word=Test
::^
::This stuff is just so that if people want to
::test it, they have all the variables they need.
set word%wordnum%=%word%
set file=!word%wordNum%!
echo %file%
如果是这样,我做错了什么?
在上下文中,我试图提醒计算机记录最后一个单词。
什么语言是您使用启用它? – ryyker