![](/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.