AT命令如何使用?

发布于 2024-10-01 05:42:59 字数 116 浏览 0 评论 0原文

我认为自己是一名中级程序员,但由于某种原因我不知道如何使用 AT 命令。它是什么?我该如何使用它?有人可以向我展示 BATCH 文件中的 AT 命令示例吗?谢谢,杰克

I would count myself as a intermediate programmer but for some reason I don't know how to use the AT command. What is it? How do I use it? Can someone show me an example of the AT command in a BATCH file? Thanks, Jake

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁与争疯 2024-10-08 05:43:00

at 安排延迟或重复执行的任务。至于如何使用——命令本身的语法描述还不够吗?

AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]]
AT [\\computername] time [/INTERACTIVE]
    [ /EVERY:date[,...] | /NEXT:date[,...]] "command"

无论如何,TechNet 上的文档都有示例。

最简单的方法当然是在您需要运行某些内容时只运行一次:

at 19:35 "foo"

但是,如果您在安排任务时需要更大的灵活性,则应该考虑使用 schtasks 来代替。例如,您只能以本地管理员身份使用 at,而 schtasks 可以执行 at 可以执行的所有操作,甚至更多。

at schedules tasks for deferred or repeated execution. As for how to use it – isn't the syntax description of the command itself not enough?

AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]]
AT [\\computername] time [/INTERACTIVE]
    [ /EVERY:date[,...] | /NEXT:date[,...]] "command"

In any case, the documentation on TechNet has examples.

The easiest way is certainly just a single time when you need to run something:

at 19:35 "foo"

However, if you need more flexibility when scheduling tasks you should consider using schtasks instead. For example, you can only use at as a local administrator and schtasks can do everything at can do and more.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文