因此,我尝试了又尝试,但由于某种原因无法弄清楚这一点。
如何从所需目录而不是 cmd.exe 所在的 System32 目录运行任务。所以,当我安排任务并尝试运行它时..
命令提示符假设转到“c:\users\aaa\bbb\ccc”,然后传递参数。
相反,它从 c:\Windows\System32 开始并失败。
有人可以帮我吗?
对此,我真的非常感激。
谢谢你。
编辑 -
所以,现在我有一个 run.bat 文件,其中包含以下内容......
C:\Users\aaa\bbb\ccc\dd (location to my testrunner.bat file)
testrunner.bat Scripts/all.suite website-address ie (command for the task I wanna perform)
net stop schedule (since window is poping up and going away way to fast, I added this to stop it (not working))