Windows 8调度程序中Command命令参数的最大长度

Pre*_*cog 5 scheduler scheduled-tasks windows-8

我有一个控制台应用程序,它接受输入命令行参数.我必须使用Win32.TaskSchedulerWindows 8上安排此任务.问题是每当我的命令行参数长度超过450个字符时,我会收到如下警告:

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.
Run Code Online (Sandbox Code Playgroud)

并且该任务最终不会在运行时运行.命令行参数的长度是否有限制?

小智 0

我在计划任务和超过 260 个字符的命令行参数中遇到了类似的问题。我们遇到了与您相同的无用错误。

最终我们不得不更改命令行参数,使它们更小(参数列表中文件路径的长度)

我们在 Windows Server 2012 R2 64 位上遇到了这个问题,我不确定位数是否与此有关......