I have a question.
How can I execute command in a plain text file?
I know it seems crazy and I can simply rename it as a .bat file BUT it is important for me.
Without renaming it, can i execute it in CMD?
I know I can simply do this :
ren command.txt command.bat & call command.bat & ren command.bat command.txt
But this is too inconvenient. Any simpler way?
cmd < command.txt
Of course it depends of the real content of command.txt.
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