This project has moved. For the latest updates, please go here.

Maximum length of Command parameters in Windows 8 scheduler

Topics: Errors
Feb 17, 2014 at 9:07 AM
Edited Feb 17, 2014 at 9:08 AM
I have a console application that takes input command line arguments. I have to schedule this task on Windows 8 using Win32.TaskScheduler or directly from Windows 8 Task Scheduler . The problem is whenever my command line arguments length exceeds 450 characters, i get a warning like this :
Task registered task "TaskName" , but not all specified triggers will start the task. User Action: Ensure all the task triggers are valid as configured. Additional Data: Error Value: 2147944183.
And the task does not run eventually at the run time. Is there any limit on command line arguments' length?
But the same thing works on windows 7 scheduler.
Feb 26, 2014 at 4:45 AM
There is nothing in the Microsoft documentation on command line argument length. There is certainly nothing in the wrapper library code that would limit the length. I would suggest posting this in one of the Microsoft Forums to see if someone at MS can answer it.
Marked as answer by dahall on 9/1/2015 at 10:10 AM