Browse Source

修正 CreateShortcut 默认参数报错问题

master
Elivo 2 months ago
parent
commit
bfc6a16a03
  1. 6
      Apewer.Windows/WindowsUtility.cs

6
Apewer.Windows/WindowsUtility.cs

@ -1059,10 +1059,10 @@ namespace Apewer
var wshShortcut = (IWshRuntimeLibrary.IWshShortcut)wshObject;
var shortcut = wshShortcut;
shortcut.TargetPath = sourcePath ?? "";
shortcut.Arguments = sourceArgs ?? "arg1";
shortcut.Description = linkDescription ?? "Invalid Description";
shortcut.Arguments = sourceArgs ?? "";
shortcut.Description = linkDescription ?? "";
shortcut.WorkingDirectory = directory ?? "";
shortcut.IconLocation = linkIcon;
shortcut.IconLocation = linkIcon ?? sourcePath;
shortcut.WindowStyle = 1;
// shortcut.WorkingDirectory = "";
// shortcut.RelativePath = "";

Loading…
Cancel
Save