我有這個批處理文件批處理文件正常工作:時執行調度時手動,但不執行
cd "C:\Users\test\Desktop\soft\"
Start excel "AD Monitor Auto Run.xlsm"
當我執行它手動它工作正常,但是當調度任務運行它,我得到這個錯誤信息:
'C:\Users\test\Desktop\soft\AD' is not recognized as an internal or external command,
operable program or batch file.
不會解決你的問題,但你應該使用'cd'帶參數/ d,這也將改變驅動器(見'CD /'?) – Stephan