Board logo

标题: [求助]用schtasks能不能设定"仅在登录后运行"呢 [打印本页]

作者: tclgb     时间: 2008-6-24 11:00    标题: [求助]用schtasks能不能设定"仅在登录后运行"呢

用schtasks能不能设定"仅在登录后运行"呢
作者: jiuzhou1     时间: 2008-6-24 11:49
说详细点,什么叫做登陆后运行
作者: dato     时间: 2008-6-24 12:49
http://www.cn-dos.net/forum/view ... ;highlight=schtasks
『第 8 楼』:
作者: HAT     时间: 2008-6-24 23:39
帮助里面没有吗?

  Quote:
ONSTART 任务在每次系统启动的时候运行。


作者: bd123456789     时间: 2009-12-27 16:04


  Quote:
Originally posted by HAT at 2008-6-24 11:39 PM:
帮助里面没有吗?

上面是随系统启动,运行计划任务..

而,楼主要求 "仅在登录后运行" 是两回事



怎么插入图片呀?
作者: yishanju     时间: 2009-12-27 17:48
计划任务在用户登录时运行
语法
schtasks /create /tn TaskName /tr TaskRun /sc onlogon [/sd StartDate] [/it] [/ru {[Domain\]User [/rp Password] | System}] [/s Computer [/u [Domain\]User [/p Password]]]

备注
“登录时”计划类型计划任务在任何用户登录到计算机时运行。在“登录时”计划类型中,/sc onlogon 参数是必需的。/sd(开始日期)参数是可选的,其默认值为当前日期

http://technet.microsoft.com/zh- ... 10).aspx#BKMK_logon