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.

Cheers

Monte

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ben
> Rubinstein
> Sent: Monday, 16 December 2002 11:16 AM
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
>   Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
>   http://www.cogapp.com        |  Fax  : +44 (0)1273-728866
>
>
> _______________________________________________
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to