I want to run one exe("Ex:mymodule.exe") in scheduler task, how to create scheduler task for execute my exe with codeing in c#.net. where i can have option of Daily, Once, Monthly.
When am trying with below code am getting Error: Access Denied
sCreateArg = @"/create /S " + @sIPAddress + " /tn " + sSchedulerName + " /tr "
+ ExePath + " /sc Daily /st " + sStartTaskTime + " /ru " + sUserName;
I have checked with Both Local system username and Password and Remote system username,Password
Thank you In advance