How would I call a dynamic variable name?

前端 未结 1 1683
逝去的感伤
逝去的感伤 2021-01-23 23:48

Okay, so I\'m trying to make a program that \"understands\" user input and does what they tell it to do. People usually just use specific commands such as \"open this file\" and

相关标签:
1条回答
  • 2021-01-24 00:23

    Add setLocal enableDelayedExpansion to the start of your script.

    Then replace echo %word%var%% with echo !word%var%!.

    For more information - http://ss64.com/nt/delayedexpansion.html

    0 讨论(0)
提交回复
热议问题