I am looking for way to assign output of a command to a batch variable, but the command internally uses another variable.
When i use the solution specified in Assign Command output to Variable in Batch file
I am getting error that the variable inside the command was not expected at this time.
Please help