I'm looking for the DOS equivalent for this command:
foo=`cat bar`
Obviously, this sets the value of the variable foo to be equal to the contents of the file bar.
I want to do the same thing in a DOS shell.
Using Cygwin doesn't count. Perl isn't available. Bonus points for using only the tools that come with the Windows OS.
setx /f bar foo /a
(
Read more... )