2 Replies - 1143 Views - Last Post: 11 November 2008 - 06:47 AM Rate Topic: -----

#1 Shadow_x21  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 46
  • Joined: 15-September 08

Startup An Extension With My Program

Posted 10 November 2008 - 08:43 PM

Shadow_x21

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

Thanks...

Shadow_x21

Is This A Good Question/Topic? 0
  • +

Replies To: Startup An Extension With My Program

#2 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

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.
    Attached Image

    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.

Was This Post Helpful? 0
  • +
  • -

#3 Rickster0  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 16
  • View blog
  • Posts: 236
  • Joined: 08-July 08

Re: Startup An Extension With My Program

Posted 11 November 2008 - 06:47 AM

read this this might help you out here

http://www.dreaminco...ile+association

but you need Visual studio.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1