URL:
http://www.soft6.com/know/detail.asp?id=BAAHAJ
At
列出在指定的时间和日期在计算机上运行的已计划命令或计划命令和程序。必须正在运行“计划”服务才能使用 at 命令。
at | /delete ]
at time | /next:date] command
参数:
无
如果在没有参数的情况下使用,则 at 列出已计划的命令。
\\computername
指定远程计算机。如果省略该参数,命令将安排在本地计算机。
id
指定指派给已计划命令的识别码。
/delete
取消已计划的命令。如果省略了 id,计算机中已计划的命令将被全部取消。
/yes
当删除已计划的事件时,对系统的查询强制进行肯定的回答。
time
指定运行命令的时间。将时间以 24 小时标记(00:00 到 23:59)的方式表示为小时:分钟。
/interactive
允许作业与在作业运行时登录用户的桌面进行交互。
/every:date
在每个星期或月的指定日期(例如,每个星期四,或每月的第三天)运行命令。将 date 指定为星期的一天或多天 (M,T,W,Th,F,S,Su),或月的一天或多天(使用 1 到 31 的数字)。用逗号分隔多个日期项。如果省略了 date,将假定为该月的当前日期。
/next:date
在重复出现下一天(例如,下个星期四)时,运行指定命令将 date 指定为星期的一天或多天 (M,T,W,Th,F,S,Su),或月的一天或多天(使用 1 到 31 的数字)。用逗号分隔多个日期项。如果省略了 date,将假定为该月的当前日期。
command
指定要运行的 Windows 2000 命令、程序(.exe 或 .com 文件)或批处理程序(.bat 或 .cmd 文件)。当命令需要路径作为参数时,请使用绝对路径,也就是从驱动器号开始的整个路径。如果命令在远程计算机上,请指定服务器和共享名的 UNC 符号,而不是远程驱动器号。如果命令不是可执行 (.exe) 文件,必须在命令前加上 cmd /c,例如:
cmd /c dir > c:\test.out
URL:
http://www.soft6.com/know/detail.asp?id=BAAHAJ
At
Lists scheduled commands or scheduled commands and programs that are running on the computer at the specified time and date. The at command can only be used if the "Scheduling" service is running.
at | /delete ]
at time | /next:date] command
Parameters:
None
When used without parameters, at lists scheduled commands.
\\computername
Specifies a remote computer. If this parameter is omitted, the command is scheduled on the local computer.
id
Specifies the identification number assigned to the scheduled command.
/delete
Cancels a scheduled command. If id is omitted, all scheduled commands on the computer are canceled.
/yes
Forces a positive response to the system's query when deleting a scheduled event.
time
Specifies the time to run the command. Express the time in 24-hour format (00:00 to 23:59) as hours:minutes.
/interactive
Allows the job to interact with the desktop of the logged-on user when the job runs.
/every:date
Runs the command on the specified day(s) of the week or month (for example, every Thursday, or the third day of each month). Specify date as one or more days of the week (M,T,W,Th,F,S,Su) or one or more days of the month (using numbers from 1 to 31). Separate multiple date entries with commas. If date is omitted, the current day of the month is assumed.
/next:date
Runs the specified command on the next occurrence of the day (for example, next Thursday). Specify date as one or more days of the week (M,T,W,Th,F,S,Su) or one or more days of the month (using numbers from 1 to 31). Separate multiple date entries with commas. If date is omitted, the current day of the month is assumed.
command
Specifies the Windows 2000 command, program (.exe or .com file), or batch program (.bat or .cmd file) to run. When the command requires a path as an argument, use an absolute path, that is, the entire path starting from the drive letter. If the command is on a remote computer, specify the UNC notation for the server and share name instead of the remote drive letter. If the command is not an executable (.exe) file, you must prefix the command with cmd /c, for example:
cmd /c dir > c:\test.out