chrisdynamite
Goto Top

VBS Anführungszeichen-Probleme

Guten Tag,

folgenden codeschnipsel möchte ich benutzen:

Const strProgramtitel="VLC Media Player"  
Const strProgram = "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"  
Dim objShortcut
Dim objShell
Set objShell= WScript.CreateObject("Wscript.Shell")  
strLPfad=objShell.SpecialFolders("")  
Set objShortcut=objShell.CreateShortcut(strLPfad & "C:\" & strProgramtitel & ".lnk")  
objShortcut.TargetPath= strProgram
objShortcut.Description= "strProgramtitel"  
objShortcut.Save

Diese VBS erstellt eine Verknüpfung in C:\

wie erreiche ich den Effekt, dass ich noch Parameter an das Ziel der Verknüpfung anhänge. Bei meinen Versuchen erhalte ich Laufzeitfehler. Ich möchte an das Ziel hinzufügen: --no-qt-privacy-ask --no-qt-updates-notif

So dass die Verknpfung heist: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --no-qt-privacy-ask --no-qt-updates-notif

Bis jetzt erreiche ich nur den Effekt: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe --no-qt-privacy-ask --no-qt-updates-notif"

oder eben Laufzeitfehler

Content-Key: 217807

Url: https://administrator.de/contentid/217807

Printed on: April 25, 2024 at 16:04 o'clock

Mitglied: 76109
76109 Sep 25, 2013 at 08:27:31 (UTC)
Goto Top
Hallo ChrisDynamite!

In etwa so:
objShortcut.Arguments = "--no-qt-privacy-ask --no-qt-updates-notif"  

Gruß Dieter
Member: Bitboy
Bitboy Sep 25, 2013 updated at 08:30:39 (UTC)
Goto Top
Hi,

mit so vllt?
objShortcut.Arguments = "--no-qt-privacy-ask --no-qt-updates-notif"

Hier gefunden: http://msdn.microsoft.com/en-us/library/yf7kaky2(v=vs.84).aspx


Edit: Zu langsam face-sad