you're asking how to create an extension for my application's files ?
ths is called ( Files Associations ) , to do so follow steps next :
these steps assume that the extension you're creating is "EXT"
1 - put a new key in the registry with the next path :
"HKEY_CLASSES_ROOT\.EXT\Shell\Open\Command"
now in the "Default" value of the key "Command" put the fullpath of your application that will open the doubleclicked file
this fulpath must be between two quotations " " like this example
"C:\Program Files\ProgramFolder\app.exe"
and also this fullpath must be enclosed by %1 so it will be like this
"C:\Program Files\ProgramFolder\app.exe" %1
2 - now in you application to get the fullpath of the doubleclicked file
in (VB.Net 2003 )
(your job now is to find the match in 2008 , sorry I don't have 2008 on my pc ):
CODE
Dim En As Environment
Dim Path As String
Path=En.GetCommandLineArgs(1))
' now Path is the fullpath of the doubleclicked file
' and you could use the En.GetCommandLineArgs(0)) to get the EXEName of your app
' now you use this code the way it fits your app and avoids the ERR messages
================================================
Steps are done .
Technical Informations:
1- the "Data" of the "Default" value of the key "Open" is the caption appears to the user when the file is rightclicked , and if it's omitted the "Open" would appears as a caption of the command
2 - we put the % to make the file supports the CommandLine which we used in the code
================================================
I hope my steps help you ... good luck .
vbnetSky Walker