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

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'