Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening data file automatically opens .NET application
Message
From
03/07/2007 16:12:04
John Baird
Coatesville, Pennsylvania, United States
 
 
To
03/07/2007 15:50:09
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
Miscellaneous
Thread ID:
01237568
Message ID:
01237614
Views:
19
>>>>>I created an application that does file exports and imports. These files have a specific extension. I want to be able to click on one of these data files and have the application launch and automatically import it. Can somebody point me in the right direction?
>>>>
>>>>Hi Mike,
>>>>
>>>>We use the filesystemwatcher class to poll a directory, when a file is placed there by the user, it automatically runs the code to import.
>>>
>>>I'm sorry, I must have not described my question correctly. Reading it again, I could have really simplified it.
>>>
>>>What I want to do is create an application that has data files of a specific extension, and when I open the data files it launches the application and loads the data. For example, when I click on a .doc file it launches Word and loads the document. I know I can make files of that extension open with my application, but I don't know how to load the data.
>>
>>You have to associate the program to handle that extension with the extension. Open any folder, go to tools/folder options/file types and register the action there. It should work. Thinking about it, you could probably write the registry keys yourself to register your file / type programatically.
>
>How do I detect in my application that it was opened with a datafile, instead of opened without one?

Read the args line in main and test for count > 0....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform