Creating a shortcut


using System.Runtime.InteropServices;

[DllImport("coredll.dll")]
public static extern void SHCreateShortcut(
string target,
string shortcut);

// Create a shortcut to tmail.exe within the
// windows start menu.
SHCreateShortcut(
@"\windows\start menu\programs\test.lnk",
@"\windows\test.exe");

留言

這個網誌中的熱門文章

使用VB讀取健保卡基本資料

使用VB讀取自然人評証卡號