Language independent way to specify day parameter for schtasks.exe

孤街浪徒 提交于 2019-12-05 19:07:07

You could go over all days of the week (start with March 4th 2012, which is a Sunday, and move forward until Saturday, March 10th) and format that date using the ddd format (short day name). That way you'll get all 7 short day names, based on your locale.

You can define your task in windows scheduler. Export the definition as XML(right click->export). Create a task using exported XML

schtasks /Create [/S <system> [/U <username> [/P [<password>]]]]
/XML <xmlfile> /TN <taskname>

The content of XML is language independent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!