why windows 7 task scheduler task fails with error 2147942667

后端 未结 7 730
粉色の甜心
粉色の甜心 2021-01-30 01:38

I am facing a strange problem. I have scheduled a task to lauch a batch file. When I run the task with option Run only when user is logged on everything works fine.

7条回答
  •  情书的邮戳
    2021-01-30 01:52

    For me it was the "Start In" - I copied the values from an older server, and updated the path to the new .exe location, but I forgot to update the "start in" location - if it doesn't exist, you get this error too

    Quoting @hans-passant 's comment from above, because it is valuable to debugging this issue:

    Convert the error code to hex to get 0x8007010B. The 7 makes it a Windows error. Which makes 010B error code 267. "The directory name is invalid". Sure, that happens.

提交回复
热议问题