zoukankan      html  css  js  c++  java
  • Create short cut

    Add COM reference

    Windows Script Host Object Model

    ---------------

        WshShell shell = new WshShell();
            IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) + "\\" + "Application Examp.lnk");
            shortcut.TargetPath = System.Reflection.Assembly.GetExecutingAssembly().Location;
            shortcut.WorkingDirectory = System.Environment.CurrentDirectory;
            shortcut.WindowStyle = 1;
            shortcut.Description = "Application";
            shortcut.IconLocation = System.Environment.SystemDirectory + "\\" + "shell32.dll, 121";
            shortcut.Save();

  • 相关阅读:
    csrf & xss
    android_sqlite
    android_error
    oracle笔记
    android_lesson_1
    mysql 设置编码
    前端进阶Event
    前端进阶Position
    chrome插件开发资料
    dom4j selectNodes
  • 原文地址:https://www.cnblogs.com/greencolor/p/1766289.html
Copyright © 2011-2022 走看看