[not really off-topic] How to register documents to apps onWindows

Monte Goulding monte at sweattechnologies.com
Sun Dec 15 20:43:01 EST 2002

The following script will work for all versions on windows post 3.1:

 put replaceText(tPath,"/","\") into tPath
 put tPath & "\myApp.exe,1" into dIcon
 put tPath & "\myApp.exe %1" into sCom
 get setRegistry("HKEY_CLASSES_ROOT\.ext\", "myApp")
 get setRegistry("HKEY_CLASSES_ROOT\myApp\", "myApp File")
 get setRegistry("HKEY_CLASSES_ROOT\myApp\DefaultIcon\", dIcon)
 get setRegistry("HKEY_CLASSES_ROOT\myApp\shell\open\command\", sCom)

Where tPath is the path to the folder of the standalone, .ext is the
extension you want to use and the application name is myApp.exe.



> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Ben
> Rubinstein
> Sent: Monday, 16 December 2002 11:16 AM
> To: use-revolution at lists.runrev.com
> Subject: [not really off-topic] How to register documents to apps
> onWindows
> Can any kind person post a brief run-down of what is required to
> register a
> an extension to an app, so that double-clicking documents with that
> extension in the Windows explorer launches the appropriate app?  I assume
> that (at least from Windows 98 on) this is done by
> writing/modifying keys in
> the registry - but which and what?  Are there any gotchas to do with
> multiple users or Administrator issues in WinXP etc?
> TIA,
>   Ben Rubinstein               |  Email: benr_mc at cogapp.com
>   Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
>   http://www.cogapp.com        |  Fax  : +44 (0)1273-728866
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution

More information about the Use-livecode mailing list