From bfc6a16a03db4b2edf415b620e8343df3b146277 Mon Sep 17 00:00:00 2001 From: Elivo Date: Tue, 24 Feb 2026 01:02:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20CreateShortcut=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=8F=82=E6=95=B0=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Apewer.Windows/WindowsUtility.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Apewer.Windows/WindowsUtility.cs b/Apewer.Windows/WindowsUtility.cs index 88d1885..270d19d 100644 --- a/Apewer.Windows/WindowsUtility.cs +++ b/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 = "";