![](/img/trans.png)
[英]Change batch file directory in system32 to CMD command execution point
[英]Why working directory changes to system32 when executing a batch file that's in a different directory and how to change it
我的桌面上有一个批处理文件,当我使用双击执行它时它可以正常工作。 但是当我使用任务计划程序执行它或以管理员身份运行时,工作目录更改为 C:\Windows\system32 并且无法正常工作。
它发生的原因是什么以及如何保留工作目录?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.