用schtasks创建了一个关机命令但不能运行是什么原因

M01382140 2008-04-05 10:00:43
VISTA系统,用schtasks创建了一个关机命令,到时间时提示未能启动是什么原因?(服务里的相关服务都已启动)
schtasks /tn at1 /tr shutdown.exe /st 12:00:00 /sc daily
回车后提示:任务AT1已经成功创建。但到了预定时间后只见DOS窗口一闪而过而系统并没有关机。用schtasks /query查看发现提示:状态为未能启动。请问是什么原因?(如果在shutdown.exe后面跟参数的话会提示语法错误)
...全文
321 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
UltraBejing 2008-05-01
  • 打赏
  • 举报
回复
我也想了解,谢谢LZ.
wtk13 2008-04-07
  • 打赏
  • 举报
回复
shutdown命令好象不是这么用的吧
shutdown.exe /s /t 30 /c "daily"
而且/t 后不是几点,而是还剩多少时间关闭.
ljc007 2008-04-07
  • 打赏
  • 举报
回复
先看看shutdown的帮助吧:)
引用
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>shutdown /?
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]

No args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without warning
-d [u][p]:xx:yy The reason code for the shutdown
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)

18,124

社区成员

发帖
与我相关
我的任务
社区描述
Windows客户端使用相关问题交流社区
社区管理员
  • Windows客户端使用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧