Posted on 2009-12-24
Last Modified: 2012-05-08
Hello Experts,
I am trying to create a scheduled task by using command prompt. My trying is such below:
schtasks /create /sc minute /mo 2 "test"  /tr c:\\Program Files\test.exe

But unfortunately it doesnt work. How can I set the correct path by using this command line?
Question by:innocent1973
    LVL 51

    Expert Comment

    by:Bill Prew
    I think you are missing the /TR, and will also need to quote the /TR value since it contains spaces.

    schtasks /create /sc minute /mo 2 /tn "test"  /tr "c:\Program Files\test.exe"

    LVL 51

    Accepted Solution

    (sorry, meant missing the /TN)


    Author Comment

    Thank you for your reply.
    I tried your code but it still did not work.
    LVL 51

    Expert Comment

    by:Bill Prew
    I ran it here and it did crate the scheduled task, what are the symptoms of the problem you are having?


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
    Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now