建立捷徑

static void urlShortcutToDesktop(string linkName, string linkUrl)
{
    using (StreamWriter writer = new StreamWriter(rootPath + linkName + "\\" + linkName + ".url"))
    {
        writer.WriteLine("[InternetShortcut]");
        writer.WriteLine("URL=" + linkUrl);
        writer.Flush();
    }
}