How to change the task time after creation of task
<p>I have created task using following code here PCLoglevelchange is name of schedule task and still the time to run every 2 hr and it is getting created with follwing syntax</p>

<pre><code>string mProcess = String.Format("schtasks /Create /SC HOURLY /ST {0} /SD {1} /tn \"PCLogLevelChange\" /tr {2} /RU SYSTEM", tmp, sdate, sDir);
</code></pre>

<p>But after creation i should change the task to run every 10 min so have </p>

<pre><code>string n = string.Format("schtasks /Change /TN \"PCLogLevelChange\" /TR {0} /RU SYSTEM /ST {1} /RI {2} /SD {3}", sDir, tmp1, tmp, sdate);
</code></pre>

<p>where ST->Start time and RI is repeating task 10 mins SD->Start date </p>

<p>Using this code i am not able to change the task to run for 10 mins</p>

<p>so i am not sure on the syntax please tell me right code for changing the task to 10 mins</p>

<p>Any help is appreciated</p>
