• 生成快捷方式


    导入COM组件Windows Script Host Object Model
    using IWshRuntimeLibrary;


    WshShell shell = new WshShell();
    IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(
      Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) +
      "\\" + "Allen's Application.lnk"
      );
    shortcut.TargetPath = System.Reflection.Assembly.GetExecutingAssembly().Location;
    shortcut.WorkingDirectory = System.Environment.CurrentDirectory;
    shortcut.WindowStyle = 1;
    shortcut.Description = "Launch Allen's Application";
    shortcut.IconLocation = System.Environment.SystemDirectory + "\\" + "shell32.dll, 165";
    shortcut.Save();
  • 相关阅读:
    [hdu4035]maze
    [codeforce][148d]
    [bzoj3507]通配符匹配
    [BZOJ4831]
    子串
    【洛谷1373】小a和uim之大逃离
    【JZOJ6303】演员
    [jzoj6296]选票
    字符串哈希
    [ABC137d&e]RE
  • 原文地址:https://www.cnblogs.com/andy_tigger/p/1858511.html
Copyright © 2020-2023  润新知