c# Change shortcut file icon
c# Change shortcut file icon
c# change the shortcut file icon c# change the shortcut file icon c# change the shortcut file icon c# change the shortcut file icon c# change the shortcut file icon c# change the shortcut file Icon c# change the shortcut file icon c# change the shortcut file icon c# change the shortcut file icon
////// Change shortcut file icon /// /// /// public async static void ChangeLinkIcon(string initialSource,string iconLocation) { // initialSource = @"C:\Users\Public\Desktop\WeChat.lnk"; //Get the shortcut path to be changed WshShell shell = new WshShell(); IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(initialSource); //Get the shortcut object shortcut.Description = "This is the modified note information!"; //Modify the note, place the mouse on the icon to prompt to change the text (right-click shortcut note (O)) shortcut.IconLocation = iconLocation;// @"C:\Users\Administrator\Desktop\2.ico"; //The same goes for other properties shortcut.Save(); await Task.Delay(500); Win32API.RefreshDesktop(); }
ffffffffffffffffff
test red font.