How to differentiate exe call?


hi,

          running exe in 2 way(double clicking icon, or creating scheduler). way differentiate exe call, mean code find application calling task scheduler or double clicking. want show different form's when call scheduler , calling double clicking of exe...what code have write in program.cs differentiate both of event...

 

regards,

saj

add commandline parameter "/launchexplicitly" app.

in application parse arguments , decide how proceed.

a double click not set parameter taskscheduler can configured start app such parameter.


no pressure, no diamonds.


Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

How to Share webservice object to all user

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts