This is a follow-up to another thread located here:
Create an executable file to open a non-executable file
In that thread, expert Joe Winograd
provided a solution which involves creating an AutoHotkey (ahk) "Run" command (which I know how to do) then compiling the resulting .ahk file to create an .exe file. That was a great solution and I'm glad to now know how to do that. However, since closing the previous thread, I've realized that that solution is not practical for the specific purpose* that prompted my question.
As a result, I'm back to my original question which is:
How do you directly create an executable file (.exe or .cmd) to open a non-executable file (.xlsm, .txt, .ahk, etc)?
In the previous thread, expert tuvi
suggested putting the following in a .cmd file:
Unfortunately, while I know how to place a command in the cmd/prompt/DOS window (not sure what it's called), I do not know how to create a .cmd or .exe file
. I tried simply pasting the above line in a Notepad window then saving it, first with a .cmd extension and then with an .exe extension but neither of those worked.
It seems like something I should know how to do but that's why I'm happy all of you great experts are available to answer questions. :)
*The main reason I'm looking for a different solution is that the 2-3 scripts (.ahk files) involved are frequently updated and having changes made. Consequently, the process of creating then running a new matching .exe file each time an .ahk file is changed, takes more time than simply manually opening the .ahk file in the first place — which is what I'm attempting to avoid if possible.
A ____________________ [A LOT OF SPACE] ____________________ LOT
"ALOT" is not a word — it never has been a word and it never will be a word.
"A LOT" is two words. Remember it as though there's [A LOT OF SPACE] between them.