title: Run Task scheduler at every 2 minute
body: <p>I want to create Task Scheduler that trigger at every 2 minute.
  I am using following  namesapce</p>
  
  <p>using Microsoft.Win32.TaskScheduler</p>
  
  <p>I have written following code </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using Microsoft.Win32.TaskScheduler;
  
  namespace SchedulerTest1
  {
      class Program
      {
          static void Main(string[] args)
          {
              // Get the service on the local machine
              using (TaskService ts = new TaskService())
              {
                  // Create a new task definition and assign properties
                  TaskDefinition td = ts.NewTask();
                  td.RegistrationInfo.Description = "Does something";
  
                  // Create a trigger that will fire the task at this time every other day
                  td.Triggers.Add(new DailyTrigger());
  
                  // Create an action that will launch Notepad whenever the trigger fires
                  td.Actions.Add(new ExecAction("notepad.exe", "D:\\test.log", null));
  
                  // Register the task in the root folder
                  ts.RootFolder.RegisterTaskDefinition(@"Test", td);
  
                  // Remove the task we just created
                  ts.RootFolder.DeleteTask("Test");
              }
          }
      }
  }
  </code></pre>
  
  <p>I want to run task at every 2 minute. What need to required to update in my code?
  Help me</p>