【发布时间】:2014-10-22 21:20:04
【问题描述】:
所以我试了又试,但由于某种原因无法弄清楚这一点。
如何从所需目录而不是 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))
【问题讨论】:
-
@shelter - 非常感谢您的回复。我试过了,但没有真正发生。这就是我的 .bat 文件的样子。 C:\Users\aaa\bbb\ccc\dd testrunner.bat Scripts/all.suitewebsite-address即
-
很抱歉...现在编辑
标签: windows command-line scheduled-tasks sahi