Is there any Windows equivalent syntax to run a command within another command in a bat script file?
In Linux, you can simply use $(...) or ``.
Is there any Windows equivalent syntax to run a command within another command in a bat script file?
In Linux, you can simply use $(...) or ``.
Yes, at least for simple things:
The output of that script is:
with the
xyzzy
coming from theecho
command.Running
for /?
from a command window should give you a more comprehensive list of options.