China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-27 00:39
中国DOS联盟论坛 » 其它操作系统综合讨论区 » [Discussion] How to specify the date to run a program View 1,942 Replies 12
Original Poster Posted 2007-02-28 22:59 ·  中国 广东 深圳 宝安区 电信
新手上路
Credits 16
Posts 7
Joined 2007-02-28 22:26
19-year member
UID 80419
Gender Male
Status Offline
For example, specify to run 38.exe at 11:00 on 2007/03/08
Floor 2 Posted 2007-02-28 23:24 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Using task scheduler, if it's under Windows.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 3 Posted 2007-02-28 23:24 ·  中国 广东 深圳 宝安区 电信
新手上路
Credits 16
Posts 7
Joined 2007-02-28 22:26
19-year member
UID 80419
Gender Male
Status Offline
Top!!
No one answers ah!
Floor 4 Posted 2007-02-28 23:25 ·  中国 广东 深圳 宝安区 电信
新手上路
Credits 16
Posts 7
Joined 2007-02-28 22:26
19-year member
UID 80419
Gender Male
Status Offline
How to do it with AT commands
Floor 5 Posted 2007-02-28 23:29 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
at /?

Add practice.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 6 Posted 2007-02-28 23:37 ·  中国 广东 深圳 宝安区 电信
新手上路
Credits 16
Posts 7
Joined 2007-02-28 22:26
19-year member
UID 80419
Gender Male
Status Offline
I saw
Used at /next:2007/02/28 10:25 f:/38.exe
But the task couldn't start after the time came
Floor 7 Posted 2007-02-28 23:40 ·  中国 安徽 马鞍山 电信
中级用户
★★
Credits 493
Posts 228
Joined 2007-02-16 00:38
19-year member
UID 79596
Gender Male
From 安徽
Status Offline
Floor 8 Posted 2007-02-28 23:52 ·  中国 广东 深圳 电信
新手上路
Credits 16
Posts 7
Joined 2007-02-28 22:26
19-year member
UID 80419
Gender Male
Status Offline
Is it that my command is wrong, or what's going on? It can't run.
Floor 9 Posted 2007-03-01 00:27 ·  中国 广东 深圳 电信
新手上路
Credits 16
Posts 7
Joined 2007-02-28 22:26
19-year member
UID 80419
Gender Male
Status Offline
Who can teach me. Thanks
Floor 10 Posted 2007-03-01 01:19 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
I also don't quite understand how to use the command-line parameters of AT, but it's generally like this:

d:\>at 12:30 /next:28 "dir"
A new job has been added, and its job ID = 1

d:\>at
Status ID Date Time Command line
-------------------------------------------------------------------------------
1 Next execution date: 28 12:30 dir
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 11 Posted 2007-03-01 04:56 ·  中国 广东 深圳 电信
新手上路
Credits 16
Posts 7
Joined 2007-02-28 22:26
19-year member
UID 80419
Gender Male
Status Offline
Thank you. But I need to specify a certain day to run!
Floor 12 Posted 2007-03-02 01:43 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
The AT command does not have the function to specify a specific day. Please use the task scheduling command schtasks to operate.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 13 Posted 2007-03-02 02:13 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
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
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Forum Jump: