Desktop - Verknüpfung?

07/07/2010 14:48 XxFratziXx#1
Hallo leute !

Ich bin grad dabei ein MULTI tool zu machen
das hald sehr viele guis hat.... die sind alle in einem ordner
aber wie schaff ich das, dass wenn man auf ein bestimmtes button
klickt, dass dann eine verknüpfung von "start.exe" zum desktop entsteht?

thx im voraus
07/07/2010 15:08 omer36#2
FileCreateShortcut vllt?
und pfad zum desktop = @DesktopDir

€ ja klappt. zb:
FileCreateShortcut(@ScriptDir & "\lala.txt", @DesktopDir & "\lalalalal.lnk")
so wird die lala.txt aus dem script ordner als verknüpfung als "lalalalal" aufm desktop gemacht.

als button halt (in etwa so) :

PHP Code:
case $buttonX
FileCreateShortcut
(@ScriptDir & "\start.exe", @DesktopDir & "\start.exe.lnk") 
musst halt testen obs klappt...

MfG
07/07/2010 15:36 Smincke2#3
nciht .ink sondern .lkn
07/07/2010 15:51 omer36#4
jo stimmt ^^
07/07/2010 16:51 PenGuin :O#5
Quote:
Gibt 0 zurück, wenn die .lnk-Datei nicht erstellt werden konnte.
.lnk war schon richtig ;)

€: Q_Q Ich natürlich nicht, obwohl die Aussage von Sminke doch falsch war <.<
€2: <3
07/07/2010 16:52 XxFratziXx#6
ok danke ! bekommt ein THX