I'll give it a shot.

Thanks a lot!!

Brian Rathbone escribió:

You could try something more like this: (I tested this with 5.5.5 on XP Pro)

 dim theAppName as String
 dim theExtension as string
 dim exten as Registryitem
 exten = new RegistryItem( "HKEY_CLASSES_ROOT" )
 theExtension = "aaa"
 theExtension = "." + theExtension
 theAppName = nthField( App.ExecutableFile.Name, ".", 1 )

 ///add extension
 exten = new RegistryItem( "HKEY_CLASSES_ROOT\" + theExtension)
 exten.defaultValue = theAppName

 ///add handler
exten = new RegistryItem( "HKEY_CLASSES_ROOT\" + theAppName + "\Shell\Open\Command" )
 exten.DefaultValue = App.ExecutableFile.ShellPath + " ""%1"""

hth,

Brian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to