title: Cant delete scheduled task with vbs
body: <p>I create task with VBS, task create and run on time perfect</p>
  <pre><code>dim fso, f, pather, objShell
  set objShell = Wscript.CreateObject(&quot;WScript.Shell&quot;)
  Set fso = createObject(&quot;Scripting.FileSystemObject&quot;)
  Set f = fso.GetFile(WScript.ScriptFullName)
  pather = fso.GetParentFolderName(f)
  
  controlTask = &quot;schtasks /create /tn &quot;&quot;Controler&quot;&quot; /tr &quot; &amp; CHR(34) &amp; pather &amp; &quot;\myFile.txt&quot; &amp; CHR(34) &amp; &quot; /sc minute /mo 50&quot;
  objShell.Run controlTask
  </code></pre>
  <p>And when I try to delete task</p>
  <pre><code>Set oShell = WScript.CreateObject(&quot;WScript.Shell&quot;)
  oShell.Run &quot;schtasks /delete /tn &quot;&quot;Controler&quot;&quot; /f&quot;
  </code></pre>
  <p>the task is not deleted. Why is what?</p>
  <p>If I create task with direct path to the file (<code>&quot;schtasks /create /tn &quot;&quot;Controler&quot;&quot; /tr &quot;&quot;c:user\meme\myFile.txt&quot;&quot; /sc minute /mo 50&quot;</code>), task create and delete. But my code assumes that &quot;myFile.txt&quot; travel with vbs file.</p>