9 Replies - 944 Views - Last Post: 11 September 2009 - 06:32 PM Rate Topic: -----

#1 Yaroslav94  Icon User is offline

  • D.I.C Regular

Reputation: 5
  • View blog
  • Posts: 294
  • Joined: 15-July 09

Open Up With File Loaded

Posted 11 September 2009 - 11:56 AM

Hello,

How can I open up a file with my program?
Like the notepad does {right click, open with, notepad}

Or swf file opener {right click, open with, swf player}
etc...


Can you please help me!
I'm trying to make an .SWF Opener


Thanks!!! :^:

Is This A Good Question/Topic? 0
  • +

Replies To: Open Up With File Loaded

#2 Rayk8301  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 71
  • Joined: 09-January 09

Re: Open Up With File Loaded

Posted 11 September 2009 - 12:01 PM

What program are you talking about? Visual Studios?
Was This Post Helpful? 0
  • +
  • -

#3 Yaroslav94  Icon User is offline

  • D.I.C Regular

Reputation: 5
  • View blog
  • Posts: 294
  • Joined: 15-July 09

Re: Open Up With File Loaded

Posted 11 September 2009 - 12:09 PM

What do you mean?

I thought name of the forum "VB.NET" was pretty explanatory?
Was This Post Helpful? 0
  • +
  • -

#4 mark.bottomley  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 176
  • View blog
  • Posts: 990
  • Joined: 22-April 09

Re: Open Up With File Loaded

Posted 11 September 2009 - 01:10 PM

You can go into Explorer (not Internet Explorer, the file one) and set the application to be launched for any extension. The file will be provided as a paramter to the application.
Was This Post Helpful? 0
  • +
  • -

#5 Yaroslav94  Icon User is offline

  • D.I.C Regular

Reputation: 5
  • View blog
  • Posts: 294
  • Joined: 15-July 09

Re: Open Up With File Loaded

Posted 11 September 2009 - 01:17 PM

Thanks


But the program does not recognize that it's suppose to open the file


it just opens it self without txt in it
Was This Post Helpful? 0
  • +
  • -

#6 mark.bottomley  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 176
  • View blog
  • Posts: 990
  • Joined: 22-April 09

Re: Open Up With File Loaded

Posted 11 September 2009 - 01:37 PM

Environment.GetCommandLineArgs() should contain the info - You still need to open the file on the command line and do something with it.
Was This Post Helpful? 0
  • +
  • -

#7 Yaroslav94  Icon User is offline

  • D.I.C Regular

Reputation: 5
  • View blog
  • Posts: 294
  • Joined: 15-July 09

Re: Open Up With File Loaded

Posted 11 September 2009 - 01:54 PM

I don't think tht wat i need
Was This Post Helpful? 0
  • +
  • -

#8 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2267
  • View blog
  • Posts: 9,482
  • Joined: 29-May 08

Re: Open Up With File Loaded

Posted 11 September 2009 - 02:19 PM

The first argument is the file path of the file.
Was This Post Helpful? 0
  • +
  • -

#9 Yaroslav94  Icon User is offline

  • D.I.C Regular

Reputation: 5
  • View blog
  • Posts: 294
  • Joined: 15-July 09

Re: Open Up With File Loaded

Posted 11 September 2009 - 06:06 PM

Can You show an example please.....
seriously I do not know anything in that category



THANK YOU so much!!
Was This Post Helpful? 0
  • +
  • -

#10 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1641
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Open Up With File Loaded

Posted 11 September 2009 - 06:32 PM

Check out using file associations, that should accomplish what you're looking for :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1