日韩不卡免费视频-日韩不卡视频在线-日韩不卡视频在线观看-日韩不卡一二三区-伊人二区-伊人丁香花久久爱综合

使用Linux at命令讓Win2000定時執行操作

在Win2000中,讓系統定時操作比較常用的辦法就是啟動調度服務后使用Linux at命令,調度服務的啟動方法可以從服務,MMC中也可以使用命令行的方式"NET START SCHEDULE".

Linux at命令的用法如下:

Linux at命令安排在特定日期和時間運行命令和程序。

要使用Linux at命令,計劃服務必須已在運行中。

AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]]

AT [\\computername] time [/INTERACTIVE]

[ /EVERY:date[,...] | /NEXT:date[,...]] "command"

\\computername 指定遠程計算機。 如果省略這個參數,會計劃在本地計算機上運行Linux at命令。

id 指定給已計劃命令的識別號。

/delete 刪除某個已計劃的Linux at命令。如果省略 id,計算機上所有已計劃的Linux at命令都會被刪除。

/yes 不需要進一步確認時,跟刪除所有作業的Linux at命令一起使用。

time 指定運行Linux at命令的時間。

/interactive 允許作業在運行時,與當時登錄的用戶桌面進行交互。

/every:date[,...] 每個月或每個星期在指定的日期運行Linux at命令。

如果省略日期,則默認為在每月的本日運行。

/next:date[,...] 指定在下一個指定日期(如,下周四)運行Linux at命令。

如果省略日期,則默認為在每月的本日運行。

"command" 準備運行的 Windows NT 命令或批處理程序。

用法一,定時啟動關閉某個服務以RAS服務方例,讓該服務在每日19:00啟動,次日7:30關閉,Linux 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″

用法二,Linux at命令定時關機

1.編寫一個批處理文件(使用批處理文件的原因是為了以后更靈活的控制而不需要重新建立調度),內容如下:

shutdown /l

如果是讓機器重新啟動則使用

shutdown /r

文件存為c:\autoshut.bat

2.建立自動執行條目:

at 22:00 c:\autoshut.bat

這樣Linux at命令每天晚上22:00機器都會自動關機,在關機前會進行30秒鐘的提示,倒計時的.

文中用的shutdown程序是win2k的Rkit中自帶的,chinaasp網站上好象也有下載,非常好用的.

這是這個程序的其它用法:

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 dia

log 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

PS:shutdown程序下載地址為:http://www.pkufo.com/computer/openfile.asp?id=65

以上是使用Linux at命令讓Win2000定時執行操作。

北大青鳥網上報名
北大青鳥招生簡章
主站蜘蛛池模板: 久久超级碰 | 欧美高清在线精品一区 | 久在线播放 | 成人午夜网站 | 99久久99久久精品免费看子伦 | 久久国产免费一区二区三区 | 伊人午夜| 久久久久亚洲视频 | 日韩一区二区三区在线免费观看 | 亚洲国产精品免费在线观看 | 亚洲综合色一区二区三区另类 | 免费看欧美毛片大片免费看 | 久久久欧美综合久久久久 | 午夜毛片网站 | 久久精品国产只有精品2020 | 欧美一级片免费观看 | 亚洲第一中文字幕 | 在线观看日本视频免费 | 亚洲国产成人久久三区 | 国产亚洲精品成人婷婷久久小说 | 久久欧洲视频 | 日本www色视频成人免费网站 | 99久久成人国产精品免费 | a成人在线| 欧美成人特黄级毛片 | 亚洲欧美日韩精品永久在线 | 久久精品国产99久久6动漫欧 | 全午夜免费一级毛片 | 午夜国产 | 亚洲精品一区二区三区在线观看 | 国产一级做a爰片在线看免费 | 精品国产90后在线观看 | 精品成人免费一区二区在线播放 | 综合亚洲精品一区二区三区 | 美女色黄网站 | 女人十八一级毛片 | 亚洲一区二区三区视频 | 久久精品国产这里是免费 | 欧美成人久久久免费播放 | 男人的天堂在线观看免费 | 国产成人免费午夜性视频 |