有没有办法在我的可执行 (exe) 文件中嵌入 excel 文件?
Is there a way to embed an excel file with my executable (exe) file?
我创建了一个 AutoHotKey 可执行文件来打开我启用的宏 excel。我只想与我的同事共享 exe 文件(而不是 excel 文件)。可能吗?
没问题。这很容易。请参考:
文件安装:
在脚本的编译版本中包含指定文件并将其写入 Dest。
FileInstall, Source, Dest [, Overwrite]
在 https://www.autohotkey.com/docs/commands/FileInstall.htm
看看这个例子:
FileInstall, C:\My Documents\My File.txt, %A_ProgramFiles%\My Application\Readme.txt, 1
或
FileInstall, Make Dragon Commands - Copy.png, %Me%.png, 0
Gui, Add, Picture, , %Me%.png ; add a graphic
FileDelete, %Me%.png
向图形用户界面添加图形。
我创建了一个 AutoHotKey 可执行文件来打开我启用的宏 excel。我只想与我的同事共享 exe 文件(而不是 excel 文件)。可能吗?
没问题。这很容易。请参考:
文件安装: 在脚本的编译版本中包含指定文件并将其写入 Dest。
FileInstall, Source, Dest [, Overwrite]
在 https://www.autohotkey.com/docs/commands/FileInstall.htm
看看这个例子:
FileInstall, C:\My Documents\My File.txt, %A_ProgramFiles%\My Application\Readme.txt, 1
或
FileInstall, Make Dragon Commands - Copy.png, %Me%.png, 0
Gui, Add, Picture, , %Me%.png ; add a graphic
FileDelete, %Me%.png
向图形用户界面添加图形。