I'm using IWshRuntimeLibrary to create shortcut with c#. the shortcut file name is in Hindi "??????".
I'm using following code my snip to create shortcut, where shortcutName = "??????.lnk"
WshShellClass wshShell = new WshShellClass();
IWshRuntimeLibrary.IWshShortcut shortcut;
shortcut = (IWshRuntimeLibrary.IWshShortcut)wshShell.CreateShortcut(destPath + "" + shortcutName);
shortcut.TargetPath = sourcePath;
shortcut.Save();
on shortcut.Save()
I'm getting following exception.
The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…