Tamilarasan
Tamilarasan

Reputation: 33

Is there a way to embed an excel file with my executable (exe) file?

I've created an AutoHotKey Executable file to open my macro enabled excel. I want to share only the exe file (not the excel file) to my peers. Is it possible ?

Upvotes: 3

Views: 344

Answers (1)

PGilm
PGilm

Reputation: 2312

Sure thing. This is so easy. Please refer to:

FileInstall: Includes the specified file inside the compiled version of the script and writes it to Dest.

FileInstall, Source, Dest [, Overwrite]

at https://www.autohotkey.com/docs/commands/FileInstall.htm

and lookit the example:

FileInstall, C:\My Documents\My File.txt, %A_ProgramFiles%\My Application\Readme.txt, 1

or

FileInstall, Make Dragon Commands - Copy.png, %Me%.png, 0
Gui, Add, Picture, , %Me%.png  ;  add a graphic
FileDelete, %Me%.png

to add a graphic to a gui.

Upvotes: 3

Related Questions