Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: creating a shortcut

From: bry:itnisk at: 29-Oct-2003 17:42

MK> How can I drive the scripting host then? I am a real Windows nitwit.... MK> (and now you see why I asked you offline what I asked you, being our MK> Windows hero ;-) ) You probably shouldn't call Wscript in something you're intending to give to customers, two issues could be: 1. Wscript turned off, for security reasons, by administrators. 2. older versions of Wscript different from what you're using. Of course number two can be a problem in any windows scenario. But I figure the problem is probably worsened the higher up the tool is you're using. I would have answered this earlier but I was sick the last two days and forgot: What you want to do is to make a desktop shortcut correct? If so you might want to consider making what is known as a Shell Instance Object, Here's an overview of these: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/h tml/shellinstobj.asp And here is an example that goes ahead and makes a shortcut to Notepad, and prompts you with a message when you try to remove it: http://www.cheztabor.com/dtshortcut/ since this is all done through the registry you should be able to handle it from rebol/view pro and higher I think (isn't there a registry dialect out there somewhere?)