Sorry if this is a very basic question, but surprisingly, extensive googling on the topic has yielded nothing of value.
How do I do an "eval" in MS-DOS?
The task at hand is to capture the current hostname in a variable so I can use it elsewhere in the script. I found the "hostname" command, which when executed spits out the hostname. What I want to do is grab the output of the hostname command and store in in a variable.
I am thinking there must be some kind of directive in the batch file, either special characters surrounding the expression, or some kind of a switch, to say "don't treat this string as a LITERAL, instead EVALUATE it and return me the result".
Help?