2010年6月30日 星期三

windows 遠端重新開機

shutdown -r

使用方式: shutdown [-i | -l | -s | -r | -a] [-f] [-m computername] [-t xx] [-c "comment"] [-d up:xx:yy]
沒有引數顯示這個訊息 (和 -? 相同)
-i顯示 GUI 介面,必須是第一個選項
-l登出 (不能和 -m 選項一起使用) -s電腦關機
-r關機並重新啟動電腦
-a中止系統關機?
-m computername從遠端進行關機/重新啟動/中止
-t xx將關機等候時間設定成 xx 秒
-c "comment"關機註解 (最多 127 個字元)
-f強制關閉執行中的應用程式,不顯示警告
-d [u][p]:xx:yy關機原因代碼
u 是使用者代碼
p 是預先計劃的關機代碼
xx 是主要原因代碼 (小於 256 的正整數)
yy 是次要原因代碼 (小於 65536 的正整數)

code block

放在POSTS

CODE {
display: block; /* fixes a strange ie margin bug */
font-family: Courier New;
font-size: 8pt;
overflow:auto;
background: #f0f0f0 url(http://klcintw.images.googlepages.com/Code_BG.gif) left top repeat-y;
border: 1px solid #ccc;
padding: 10px 10px 10px 21px;
max-height:200px;
line-height: 1.2em;
}

samba windows 更換使用者 重新登入

在windows下開啟terminal輸入

net use * /delete

刪除現有連結

重新登入資料夾即可

關於samba的教學文章