开发者

Set "start in" box for a shortcut C#

How can I set the start in 开发者_高级运维path for a shortcut? I am creating the shortcut using

WshShellClass WshShell = new WshShellClass(); 
IWshRuntimeLibrary.IWshShortcut shortcut;


I believe to set that you use the WorkingDirectory property of IWshShortcut

shortcut.WorkingDirectory = "C:\temp";

See this link for a C# tutorial on creating shortcuts

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜