亚洲天堂一级片-亚洲天堂三区-亚洲天堂久久精品成人-亚洲天堂毛片-久久国产欧美日韩高清专区-久久国产欧美日韩精品免费

使用Linux at命令讓W(xué)in2000定時執(zhí)行操作

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

Linux at命令的用法如下:

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

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

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

AT [\\computername] time [/INTERACTIVE]

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

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

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

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

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

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

/interactive 允許作業(yè)在運行時,與當(dāng)時登錄的用戶桌面進行交互。

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

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

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

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

"command" 準(zhǔn)備運行的 Windows NT 命令或批處理程序。

用法一,定時啟動關(guān)閉某個服務(wù)以RAS服務(wù)方例,讓該服務(wù)在每日19:00啟動,次日7:30關(guān)閉,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命令定時關(guān)機

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

shutdown /l

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

shutdown /r

文件存為c:\autoshut.bat

2.建立自動執(zhí)行條目:

at 22:00 c:\autoshut.bat

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

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

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

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命令讓W(xué)in2000定時執(zhí)行操作。

北大青鳥網(wǎng)上報名
北大青鳥招生簡章
主站蜘蛛池模板: 中文字幕日韩一区二区 | 成人免费视频一区二区三区 | 免费看美女无遮掩的软件 | 2022国产精品自拍 | 成人国产网站v片免费观看 成人国产午夜在线视频 | 中文在线com| 亚洲天堂男人天堂 | 国产成人久久777777 | 国产精品资源 | 国产成人ay手机在线观看 | 精品久 | 日本加勒比在线视频 | 国产一区a | 99在线热播精品免费 | 亚洲成a人片在线观看 欧美 | 天天躁日日躁狠狠躁一级毛片 | 性生活免费视频网站 | 欧美成人性色大片在线观看 | 欧美在线bdsm调教一区 | 亚洲一区二区三区不卡在线播放 | 一个人免费观看日本www视频 | 国产成人高清在线观看播放 | 男人一进一出桶女人视频 | 欧美视频久久 | 国产精品一国产精品 | 美女扒开腿让男人桶爽免费动态图 | 精品国产亚洲一区二区在线3d | 中文无线乱码二三四区 | 不卡无毒免费毛片视频观看 | 色综合久久91 | 好吊妞国产欧美日韩视频 | 成年女人毛片免费视频 | 亚洲欧洲日产v特级毛片 | 成年人免费毛片 | 最近中文字幕精彩视频 | 欧美成人小视频 | 欧美激情视频在线观看一区二区三区 | 日韩一级片播放 | 超级碰碰碰视频视频在线视频 | 色丁香久久 | 亚洲国产成人久久综合野外 |