简体   繁体   English

批处理文件在Windows Task Scheduler中不起作用

[英]Batch File not working in windows task scheduler

在此处输入图片说明 I have a simple batch files that executes when run manually, however when run via task scheduler it errors with a 0x1 code. 我有一个简单的批处理文件,当手动运行时会执行,但是通过任务计划程序运行时会出现0x1代码错误。

You should uncheck the box that says "Run whether user is logged in or not." 您应该取消选中“无论用户是否登录都运行”框。

Certain batch functions require permissions to actually work, so if this is being run while no user is logged in, it can cause an error due to insufficient permissions. 某些批处理功能需要权限才能实际工作,因此,如果在没有用户登录的情况下运行该批处理功能,则可能由于权限不足而导致错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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