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

SQL Server 2008 - High Memory Usage

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

Problem In Configuring Biztalk 2009 In Creating A ReceivePort.When I Try To Create A Receive POrt I Got This Error