我正在使用 IWshRuntimeLibrary 使用 c# 创建快捷方式。快捷方式文件名是印地语“नमस्ते”。
我正在使用以下代码我的片段来创建快捷方式,其中shortcutName = "नमस्ते.lnk"
WshShellClass wshShell = new WshShellClass();
IWshRuntimeLibrary.IWshShortcut shortcut;
shortcut = (IWshRuntimeLibrary.IWshShortcut)wshShell.CreateShortcut(destPath + "\\" + shortcutName);
shortcut.TargetPath = sourcePath;
shortcut.Save();
在shortcut.Save()
我得到以下异常。
The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B)