I am trying to convert my bash script into a Windows batch file. It's a really simple one liner that's supposed to feed the contents of a file as arguments to script.exe
, and send the results to output.txt
.
This is the working bash script:
./script.exe $(cat input.txt) > output.txt
I know this might be bad style, but it works. The problem is, I have no idea how to do something like $()
in a windows batch file. When I use it it sends the string "$(cat input.txt)"
as the argument instead of running the command.