Exemplo n.º 1
0
        /// <summary>
        /// ショートカットファイル作成
        /// </summary>
        /// <param name="filename">ターゲットファイルパス名</param>
        /// <param name="shortcutPath">作成するショートカットファイルパス名</param>
        /// <param name="description">説明</param>
        public static void CreateShortcut(string filename, string shortcutPath, string description)
        {
            ShellLink link = new ShellLink();

            link.ShortCutFile = shortcutPath;
            link.Target       = filename;
            link.Description  = description;
            link.Save();
            link.Dispose();
        }