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

RFC_ERROR_SYSTEM_FAILURE with SAP ECC 6 Unicode

C# System.Data.Common DbCommand and getting Datasets from Oracle