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

AlexCode

Senior Contributor
Joined
Jul 7, 2003
Messages
931
Location
Portugal
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
 
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?
 
With a more deep search I found this thread that does quite what I want:
http://www.xtremedotnettalk.com/showthread.php?t=85595

Wraith said:
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
 
Back
Top