Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 1
    I'd avoid VBScript purely because it is insecure and some shops don't allow it at all. However, this solution will work, so I'm voting it up.
    – user3463
    Commented Apr 25, 2012 at 17:27
  • This works very well! I'll accept it. Commented Apr 25, 2012 at 17:55
  • 1
    On Windows 7 I'd recommend PowerShell (Start-Process).
    – Bob
    Commented Apr 25, 2012 at 18:48
  • I've used a method similar to this in the past to make windows invisible. Good call.
    – Melikoth
    Commented Apr 25, 2012 at 19:25
  • 1
    This unfortunately prevents the Task Scheduler from correctly stopping the task and detecting if instances are already running. Long-running repeatable tasks frequently start running in parallel. May be a problem. Commented Jul 28, 2012 at 9:52