My script won't run under the task scheduler. Why?

后端 未结 13 2363
忘掉有多难
忘掉有多难 2021-02-04 08:53

I have a vbscript script that I runs fine when I am running it myself.

For some reason, when I run it under the task scheduler as an administration user, it runs, but do

13条回答
  •  野的像风
    2021-02-04 09:13

    I had the same problem.

    I fixed it by using relative path ("logs\log") instead of the absolute I was using before ("U:\workingDirectory\logs\log").

    Aparently when you execute scripts via task scheduler you need to use relative paths.

提交回复
热议问题