File Association..pls help
-
how to get the filename of the file being open and pass it to the associated application..:confused:
-
Check this link out:http://www.vbcity.com/forums/topic.asp?tid=72258[^]
-
yeah i have it already.. my problem is how to get the filename of file being opened.. i want that my application know the filename of the file being opened..
This is in the article that he referenced. Click on "&Open". You will see in the Properties window "Name", "Arguments", "Verb". Verb is hidden from the user, but is the key that is stored in the registry. Leave it the same as the name, but without the "&". The default for "Arguments" is "%1", which means to pass the full path and filename to your application. You can add other stuff here as well, if you need to pass flags to your application to do special stuff. All this information is getting passed to your application on the command line, so you'll need to be familiar with the "Environment.CommandLine" object. It looks like the information you need will be passed in the command line that starts your application. So use enviroment.commandline to access it
-
This is in the article that he referenced. Click on "&Open". You will see in the Properties window "Name", "Arguments", "Verb". Verb is hidden from the user, but is the key that is stored in the registry. Leave it the same as the name, but without the "&". The default for "Arguments" is "%1", which means to pass the full path and filename to your application. You can add other stuff here as well, if you need to pass flags to your application to do special stuff. All this information is getting passed to your application on the command line, so you'll need to be familiar with the "Environment.CommandLine" object. It looks like the information you need will be passed in the command line that starts your application. So use enviroment.commandline to access it