开发者

Set "start in" box for a shortcut C#

开发者 https://www.devze.com 2023-02-16 23:37 出处:网络
How can I set the start in 开发者_高级运维path for a shortcut? I am creating the shortcut using

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

精彩评论

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