VBS Anführungszeichen-Probleme
Guten Tag,
folgenden codeschnipsel möchte ich benutzen:
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
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
Please also mark the comments that contributed to the solution of the article
Content-Key: 217807
Url: https://administrator.de/contentid/217807
Printed on: April 26, 2024 at 04:04 o'clock
2 Comments
Latest comment
Hallo ChrisDynamite!
In etwa so:
Gruß Dieter
In etwa so:
objShortcut.Arguments = "--no-qt-privacy-ask --no-qt-updates-notif"
Gruß Dieter
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
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