Per VB Script eine Webverknüpfung erstellen
Hallo,
ich möchte per Script eine Verknüpfung auf dem Desktop erstellen.
Die Verknüpfung wird auch erstellt nur das gewünschte Icon wird nicht verbunden.
Noch als Anmerkung, das sind meine ersten Gehversuche mit Scripten.
Set objShell = WScript.CreateObject("WScript.Shell")
Desktop = objShell.SpecialFolders("Desktop")
Set objShortCut = objShell.CreateShortcut(Desktop & "\test.url")
objShortCut.TargetPath = "http://dwapp1/test/"
objShortCut.IconLocation = "P:\Update\Test \Icon.ico"
objShortCut.Save
Grüße
ich möchte per Script eine Verknüpfung auf dem Desktop erstellen.
Die Verknüpfung wird auch erstellt nur das gewünschte Icon wird nicht verbunden.
Noch als Anmerkung, das sind meine ersten Gehversuche mit Scripten.
Set objShell = WScript.CreateObject("WScript.Shell")
Desktop = objShell.SpecialFolders("Desktop")
Set objShortCut = objShell.CreateShortcut(Desktop & "\test.url")
objShortCut.TargetPath = "http://dwapp1/test/"
objShortCut.IconLocation = "P:\Update\Test \Icon.ico"
objShortCut.Save
Grüße
Please also mark the comments that contributed to the solution of the article
Content-Key: 293671
Url: https://administrator.de/contentid/293671
Printed on: April 23, 2024 at 16:04 o'clock
2 Comments
Latest comment
Moin,
Gib dem Link mal die Endung *.lnk anstatt *.url , dann funktioniert das wie gewünscht.
Gruß grexit
p.s. bitte nutze in Zukunft Codetags für deinen Quellcode... Formatting instructions in the posts
Gib dem Link mal die Endung *.lnk anstatt *.url , dann funktioniert das wie gewünscht.
Gruß grexit
p.s. bitte nutze in Zukunft Codetags für deinen Quellcode... Formatting instructions in the posts