Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The bat file is added to windows. The scheduled task running returns error code 0x1.

2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Normally our task plan will have a feedback value, which can be used to determine whether the task plan worked properly last time (detailed link: http://support.microsoft.com/kb/267031/).

Code 0 or 0x0: the operation completed successfully.

Code 1 or 0x1: the function called is incorrect or an unknown function is called.

Code 10 or 0xa: the environment is incorrect.

Code 0x8009000f: general access denied

The batch program runs normally by double clicking directly, but the error code 0x1 is missing when the scheduled task runs in windows.

Cause of error: batch scripts in programs and scripts have a directory structure, but start there without configuring the path to the directory where the batch script is located

Configure the path to the bat file in the red box to execute successfully.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 288

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report