I have a question.
How to execute a command in a text file?
I know this is crazy, and I can just rename it as a .bat file, but for me it is important.
Without renaming it, can I execute it in CMD?
I know that I can just do this:
ren command.txt command.bat & call command.bat & ren command.bat command.txt
But this is too inconvenient. Any easier way?
source
share