日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

Windows定時(shí)任務(wù)

 wuxyu 2008-04-10
Windows定時(shí)任務(wù) 2007年09月20日 星期四 11:49  在Windows中,讓系統(tǒng)定時(shí)操作比較常用的辦法就是啟動(dòng)調(diào)度服務(wù)后使用at命令,調(diào)度服務(wù)的啟動(dòng)方法可以從服務(wù),MMC中也可以使用命令行的方式"NET START SCHEDULE".      at命令的用法如下:   \\computername 指定遠(yuǎn)程計(jì)算機(jī)。 如果省略這個(gè)參數(shù),   會(huì)計(jì)劃在本地計(jì)算機(jī)上運(yùn)行命令。   id 指定給已計(jì)劃命令的識(shí)別號(hào)。   /delete 刪除某個(gè)已計(jì)劃的命令。如果省略 id,   計(jì)算機(jī)上所有已計(jì)劃的命令都會(huì)被刪除。   /yes 不需要進(jìn)一步確認(rèn)時(shí),跟刪除所有作業(yè)   的命令一起使用。   time 指定運(yùn)行命令的時(shí)間。   /interactive 允許作業(yè)在運(yùn)行時(shí),與當(dāng)時(shí)登錄的用戶   桌面進(jìn)行交互。   /every:date[,...] 每個(gè)月或每個(gè)星期在指定的日期運(yùn)行命令。   如果省略日期,則默認(rèn)為在每月的本日運(yùn)行。   /next:date[,...] 指定在下一個(gè)指定日期(如,下周四)運(yùn)行命令。   如果省略日期,則默認(rèn)為在每月的本日運(yùn)行。   "command" 準(zhǔn)備運(yùn)行的 Windows NT 命令或批處理程序。      用法一,定時(shí)啟動(dòng)關(guān)閉某個(gè)服務(wù)      以RAS服務(wù)方例,讓該服務(wù)在每日19:00啟動(dòng),次日7:30關(guān)閉,AT命令如下:   AT 19:00 /every:M,T,W,Th,F,S,Su net start ″remote access server″   AT 7:30 /every:M,T,W,Th,F,S,Su net stop ″remote access server″      用法二,定時(shí)關(guān)機(jī)      1.編寫一個(gè)批處理文件(使用批處理文件的原因是為了以后更靈活的控制而不需要重新建立調(diào)度),內(nèi)容如下:   shutdown /l   如果是讓機(jī)器重新啟動(dòng)則使用   shutdown /r   文件存為c:\autoshut.bat   2.建立自動(dòng)執(zhí)行條目:   at 22:00 c:\autoshut.bat      這樣每天晚上22:00機(jī)器都會(huì)自動(dòng)關(guān)機(jī),在關(guān)機(jī)前會(huì)進(jìn)行30秒鐘的提示,倒計(jì)時(shí)的.      這是這個(gè)程序的其它用法:   shutdown [\\computername] [/l] [/a] [/r] [/t:xx] ["msg"] [/y] [/c] [/?]      Where:      \\computername   Remote computer to shut down. If no name is given but the tool is started with any of the other   options, the local computer name will be used.   /L   Specifies a local shutdown.   /A   Quits a system shutdown. This can only be done during the timeout period. If this switch is used,   all others are ignored.   /R   Restart the computer specifed after shutdown.   /T:xx   Sets the timer for system shutdown in xx seconds. The default is 20 seconds.   "msg"   Specifies an additional message with a maximum of 127 characters, surrounded by quotation marks.   /y   Answers questions with "yes".   /C   Forces running applications to close.      Caution      If you use the /c parameter, Windows 2000 ignores the application’s option to save data that   might have changed. You will see no File Save dialog box, because Windows 2000 will force the   application to close. This will result in a loss of all data not previously saved.      /? (or shutdown without parameters)   Display help.   Examples   Shutdown and reboot a remote computer.   shutdown \\IMAREMOTECOMPUTER /R   Shutdown a local computer, closing all applications in 5 seconds.   shutdown /L /C /T:5

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多