简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM