Jump to content
Xtreme .Net Talk

Start application from both Explorer and CommandPrompt from the same EXE??


Recommended Posts

Posted

Hi...

 

The topic kind of says it all...

How can I compile an application exe so it can start normally by double clicking and from a command prompt?

 

I need this because this app produces user report files, and I want to lunch the app when the user double clicks a report file.

 

Thanks!

 

Alex

Software bugs are impossible to detect by anybody except the end user.
Posted

Your post is a little confusing, i'm not sure exactly what it is you want.

Any executable can be run by directly executing its exe file, either from the shell or from the command prompt.

 

To have your program the default for a certain type of file you would need to create a file association. The installer project has a tab for these and there is good msdn documentation on how to create them manually if you need to.

 

Is this what you want to know?

Posted

With a more deep search I found this thread that does quite what I want:

http://www.xtremedotnettalk.com/showthread.php?t=85595

 

Any executable can be run by directly executing its exe file, either from the shell or from the command prompt.

I know that... but the advantage of starrting it form the shell is that you can add some start arguments...

 

Thanks anyway

 

Alex :p

Software bugs are impossible to detect by anybody except the end user.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...