简体   繁体   中英

Batch file called from a c# application not getting executed via task scheduler

I have a C# application which internally creates a batch file and runs it. When I run the exe manually, everything works fine, but when i run it via task scheduler, it fails to execute the batch file. (I'm using Windows 8). Can anyone please help me? Thanks in advance

I guess the running directory is not correct. Your application creates the batch file on the wrong place or your application looks for the batch file on the wrong place. Check the running directory in the task scheduler to fix this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM