Possible Duplicate:
Batch equivalent of Bash backticks
In unix we use `` for command output substitution.
e.g.
export a=`pwd`
Is there any equivalent for this (``) in DOS command prompt?
Unix:
export var1=`pwd`
DOS:
FOR /F %a IN ('pwd') DO SET var1=%a
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With