Reputation: 2947
is there an equivalent in Windows Command to the following command in bash :
variable='cat mytextfile'
I found answers on the net, but they use loop or complicated ways... they're is probably a simple way to do it?
Upvotes: 0
Views: 108
Reputation: 56
I use the following command, which works for me
set /p myVar=<myFile.txt
Upvotes: 2