mIRC Home    About    Download    Register    News    Help

Print Thread
#54786 14/10/03 07:23 PM
Joined: Mar 2003
Posts: 58
A
Adler Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Mar 2003
Posts: 58
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....

#54787 14/10/03 08:17 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
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.


Link Copied to Clipboard