wilyfox
Goto Top

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

Content-Key: 293671

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

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

Mitglied: 122990
Solution 122990 Jan 20, 2016 updated at 15:22:33 (UTC)
Goto Top
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
Member: wilyfox
wilyfox Jan 20, 2016 at 15:24:36 (UTC)
Goto Top
Hi,
funktioniert, Danke

... werde ich in Zukunft tun.

Grüße wilyfox