mIRC Homepage
Posted By: Adler Shortcuts with com? - 14/10/03 07:23 PM
i have written a script in vbs

"
Dim Shell
Dim Desk
Dim Link
Set Shell=WScript.CreateObject("WScript.shell")
Desk=Shell.SpecialFolders("Desktop")
on error resume next
Set Link=Shell.CreateShortcut(Desk & "\" & "mIRC.LNK")
on error resume next
Link.TargetPath="C:\Programme\mirc\mirc.exe"
Link
on error resume next
Link.Save
msgbox "Ready!"
"

Is it possible to make this with com objects?
I have seen, with com could write into registry (Wshell), but i have no idea how.
Could anybody help me?

Thx for tutorials, help and other....
Posted By: Online Re: Shortcuts with com? - 14/10/03 08:17 PM
It's not possible with the current COM support, because mIRC will not let us access the properties of the newly created 'Link' object through $com.

What we can do is making a script that creates a customized, external .vbs file similar to yours and runs it. A nicely coded script by qwerty can be found here.
© mIRC Discussion Forums