How do I make my own .exe file?
XxSaberxX
Singapore
I have a couple of files spread out over different directories that I want to open regularly, one after another but it a hassle to jump in and out of folders just to open them one by one. That's why I'm wondering if there is a way to create a .exe file that opens multiple .exe/.dat files when clicked, opening them in order and maybe possibly having a time interval in between the starting of each file (one of them is a server program). If yes, how do I do it?
0
Comments
Open notepad, and enter a list of commands the same way you would type them in the 'Run' box from the Start menu, then save that file with a BAT extension and you're done. You can get the commands you want from looking at the properties of your shortcuts.
Here's an example:
I can create a Batch file that opens steam and Winamp together by creating a file that looks like this on the inside:
then call that file steamandwinamp.bat, and I'm done.
Google "batch syntax" or "batch syntax choice" (without quotes), and read up. It looks complicated at first, but when when it comes down to it it's pretty easy to handle if you already have some experience with any other coding syntax.
So you could make a tool that opens program 1 waits 10 seconds opens program 2 etc....
In your particular case a .bat file would work just as well. But for things more complicated AutoIt is awesome.
Run("X:\whatever.exe")
sleep(10)
Run("X:\whatever.exe")
sleep(10)
then for closing...
Opt("WinTitleMatchMode", 2)
WinClose("Window title")
I think taskkill filename would work. Wouldn't it?