草庐IT

MyShortcut

全部标签

c# - 嵌入式资源文件的路径

我的资源文件中有一个图标,我想引用它。这是需要图标文件路径的代码:IWshRuntimeLibrary.IWshShortcutMyShortcut;MyShortcut=(IWshRuntimeLibrary.IWshShortcut)WshShell.CreateShortcut(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)+@"\PerfectUpload.lnk");MyShortcut.IconLocation=//pathtoiconspath.Worksifsetto@"c:/i