gui and command line question

  • Thread starter Thread starter jason.s.turner
  • Start date Start date
J

jason.s.turner

Is there anyway to write a .Net program (C# or VB.NET) that if called
from the command line it acts as a command line program, but if double
clicked, a gui comes up instead. If not, any idea of how to handle
this?

Thanks,

Jason
 
Is there anyway to write a .Net program (C# or VB.NET) that if called
from the command line it acts as a command line program, but if double
clicked, a gui comes up instead. If not, any idea of how to handle
this?

You may be interested in this blog article:

http://blogs.msdn.com/junfeng/archive/2004/02/06/68531.aspx

ildasm is interesting - if you run it with no arguments, it actually
runs twice. If you run it from Windows Explorer, you see a console
flicker up for a second before it goes away.

I'm sure there is a third way - use the DOS stub to execute a 16-bit DOS
program. That won't work in Vista, though.

-- Barry
 
Barry said:
You may be interested in this blog article:

http://blogs.msdn.com/junfeng/archive/2004/02/06/68531.aspx

ildasm is interesting - if you run it with no arguments, it actually
runs twice. If you run it from Windows Explorer, you see a console
flicker up for a second before it goes away.

I'm sure there is a third way - use the DOS stub to execute a 16-bit DOS
program. That won't work in Vista, though.

-- Barry


That looks great! Thanks a lot.

Jason
 
Back
Top