Windows 如何创建具有两个目标的快捷方式

Windows 如何创建具有两个目标的快捷方式,windows,vbscript,Windows,Vbscript,我正在使用以下脚本创建快捷方式: Set oShellLink = objShell.CreateShortcut("shortcut.lnk") oShellLink.TargetPath = "C:\Windows\System32\mshta.exe D:\path\to\file.hta" oShellLink.WindowStyle = 1 oShellLink.IconLocation = "logo.ico" oShellLink.Description = "app" oShel

我正在使用以下脚本创建快捷方式:

Set oShellLink = objShell.CreateShortcut("shortcut.lnk")
oShellLink.TargetPath = "C:\Windows\System32\mshta.exe D:\path\to\file.hta"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "logo.ico"
oShellLink.Description = "app"
oShellLink.WorkingDirectory = desktop
oShellLink.Save
oShellLink.TargetPath=“C:\Windows\System32\mshta.exe D:\path\to\file.hta”
中,由于目标路径中有空格,因此被卡住。如何做到这一点?我也试着像这样操纵绳子

"C:\Windows\System32\mshta.exe" & " " & """" & "D:\PLR\software\plrplus.dll" & """"
如有疑问,请阅读本手册


此属性仅用于快捷方式的目标路径。快捷方式的任何参数都必须放在参数的属性中

命令的参数属于以下属性:

Set oShellLink = objShell.CreateShortcut("shortcut.lnk")
oShellLink.TargetPath = "C:\Windows\System32\mshta.exe"
oShellLink.Arguments = "D:\path\to\file.hta"
...
oShellLink.Save

正如我所说,使用VBscript.@Scripting.FileSystemObject时,我从未感到孤独,这不是不阅读,在这里提问应该是最后的选择。建议的文档与我在示例中使用的文档相同,但没有直接解释oShellLink.Arguments是如何显而易见的。因为我不知道面向对象是如何工作的。@Scripting.FileSystemObject And?在UNIX、Windows等中,在路径末尾传递的任何值都称为参数(有时是参数)。我的观点是,不需要太多(只是一点点挖掘)来确定参数应该如何指定。@Scripting.FileSystemObject事实上,属性页在备注部分说了这样一句话——“此属性仅用于快捷方式的目标路径。快捷方式的任何参数都必须放在参数的属性中。”,我非常清楚。