[問題] 製作shortcut遇到簡體或日文就失敗。
以下是小弟的程式
========================
WshShellClass myWshShell;
// Create a new instance of WshShellClass
myWshShell = new WshShellClass();
// Create the shortcut
IWshRuntimeLibrary.IWshShortcut MyShortcut;
// Choose the path for the shortcut
MyShortcut =
(IWshRuntimeLibrary.IWshShortcut)myWshShell.CreateShortcut(name + ".lnk");
// Where the shortcut should point to
MyShortcut.TargetPath = filePath;
// Create the shortcut at the given path
MyShortcut.Save();
=======================
就是FilePath的地方沒有辦法接受簡體字或日文
有沒有什麼方法可以讓他變成Unicode呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.195.147.70
→
01/17 23:18, , 1F
01/17 23:18, 1F
→
01/17 23:21, , 2F
01/17 23:21, 2F
推
01/18 02:19, , 3F
01/18 02:19, 3F
→
01/18 10:55, , 4F
01/18 10:55, 4F
→
01/18 16:03, , 5F
01/18 16:03, 5F
→
01/18 16:05, , 6F
01/18 16:05, 6F
→
01/18 16:06, , 7F
01/18 16:06, 7F
→
01/18 16:09, , 8F
01/18 16:09, 8F
推
01/18 16:18, , 9F
01/18 16:18, 9F
推
01/18 16:30, , 10F
01/18 16:30, 10F
→
01/18 17:35, , 11F
01/18 17:35, 11F
→
01/18 22:36, , 12F
01/18 22:36, 12F
→
01/18 22:37, , 13F
01/18 22:37, 13F
→
01/18 22:41, , 14F
01/18 22:41, 14F
→
01/18 22:41, , 15F
01/18 22:41, 15F
→
01/18 22:41, , 16F
01/18 22:41, 16F
→
01/19 07:34, , 17F
01/19 07:34, 17F
→
01/19 10:21, , 18F
01/19 10:21, 18F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):