开发者

How do you use the AT command?

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 someon开发者_如何学Ce show me an example of the AT command in a BATCH file? Thanks, Jake


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜