为exe文件创建运行时图标 [英] Create a runtime icon for a exe file
问题描述
我将在最终用户需要的地方创建我的应用程序的副本。
I'm going to create a copy of my application in some where that the final user needs.
Dim result As String = MsgBox("Do you want to create a copy of application on your desktop?", vbYesNo + vbInformation, "")
If result = vbYes Then
File.Copy(Application.ExecutablePath, UserAddress.Name & "Connection.exe", True)
End If
但是我'我将在执行前更改复制文件运行时的图标。
But I'm going to change the icon of copied file run time before it's execution.
感谢您花时间阅读我的问题
Thanks for taking your time to read my question
推荐答案
目前尚不清楚为何要创建副本,但是, 也许您只想创建一个exe文件的快捷方式。 使用快捷方式(.lnk文件)将允许您为快捷方式设置所需的任何图标,并在任何位置执行实际的
exe文件。 以下是我创建快捷方式示例的链接。
It is not clear why you are creating a copy but, maybe you want to just create a shortcut to your exe file instead. Using a shortcut (a .lnk file) will allow you to set whatever icon you want for the shortcut and will execute the actual exe file wherever it is installed. Below is a link to an example of mine for creating shortcuts.
这篇关于为exe文件创建运行时图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!