Error while running Scheduled Task from MSBUILD script

Posted by SVI on Stack Overflow See other posts from Stack Overflow or by SVI
Published on 2010-05-19T17:56:41Z Indexed on 2010/05/19 18:00 UTC
Read the original article Hit count: 287

Filed under:
|

I am running a MSBUILD script which disables and enabled a scheduled task from command line. I am getting following error. No idea, what 'exited with code 1' means. When I try to copy paste the line in command prompt, it works perfectly. I doesnot run in MSBuild script which is in turn called by CruiseControl.NET

SNIPPET FROM MSBUILD file is

ERROR is

The command "C:\WINDOWS\system32\schtasks.exe /S servername /Change /RU SYSTEM /TN "MyScheduledtask" /DISABLE" exited with code 1.

© Stack Overflow or respective owner

Related posts about scheduled-tasks

Related posts about msbuild