You Know How Certain Extensions Open With Certain Programs.
For Example Word Doocument(.docx) Opens With Word Automatically.
I Want To Know How To Make An Extension Open With My Program.
Also How Do You Open A File And Put It's Contents(Text) Into My Program.
I Created A Program In VB.net With A Textbox Then Chose For Text Files(went To The Properties)
To Open Up With My Program But The Text Didn't Show Up In My Textbox.
How Would You Do This...Please Help or Give Suggestions or Sites
Startup An Extension With My Program
Page 1 of 1
2 Replies - 1186 Views - Last Post: 11 November 2008 - 06:47 AM
Replies To: Startup An Extension With My Program
Re: Startup An Extension With My Program
Posted 10 November 2008 - 11:39 PM
You need to do two things to achieve this:
- Enable your program to take in command-line arguments where the first parameter would be the name of the file that is supposed to be opened in your app.
- Start Windows Explorer. Click Tools->Folder Options Menu and then choose the File Types Tab. You should be able to see this window now.
Click New to add your extension to the list and then click Change and select your program to link the extension with your program.
Click OK and you're all set.
Try double-clicking on the file. It should open with your program now.
Page 1 of 1