Share via

Run .cmd file from Task Scheduler

Anonymous
2014-05-19T06:22:48+00:00

Hi, 

I'm trying to run a .cmd file from Task Scheduler so that I can schedule it daily. The .cmd file runs fine when I run it manually, and uses cURL to relate to a website and download a file. 

I've tried many options, obviously to start a program "cmd.exe" or "cmd" and parameters/start in C:\path\to\file and many variations to this. Also, I've tried C:\path\to\file directly in the "start a program" box. The errors that i'm getting range from 0x1 to 0xc000013a. Sometimes a shell opens up, but the file is not executed since no download is resulting (like when performed manually). 

If you could give me a hint which are the steps (what to enter where) to schedule a .cmd file that would be great, i'm rather newbie to this...?

Users' autorisations should not be an issue as i'm the only one operating the computer with admin rights. also i've set all the autorisations to "permitted' in the properties of the .cmd file. 

Thanks and regards

Valentino

Windows for home | Other | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2014-05-19T21:30:28+00:00

    Hi Valentino,

    Thank you for sharing the information here, this might help others if they come across same issue.

    0 comments No comments
  2. Anonymous
    2014-05-19T20:34:12+00:00

    Hi Valentino,

    Please post your question on TechNet Forums, Where we have support professionals who are well equipped with the knowledge on these kind of issues, to do that please visit the below provided link.

    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?category=w7itpro

    Hope this information helps you. Please do let us know if you need further assistance, we’ll be happy to help you.

    0 comments No comments