I would like to have a windows executable (.exe-file) which starts a given command. The command to execute would be stored in an .ini-file (or something similar) in the same directory as the executable.
It needs to work on XP, Vista and Win7.
What is the easiest way to get such an executable with open source tools?
Make a batch file (.bat) and use a Batch to Exe converter to convert it to an .exe file.
The batch file contains the following commands:
And MyCommand.txt contains your command, for example:
The batch file reads the command from the text file and runs it. And if you don’t want a .bat then convert it to .exe. That’s it.