Posted by Billy.F in March 17, 2010
VBS Script To Verify If A Specified Hot Fix Is Installed On A List Of Remote Machines
This VBS script will take a Hot Fix ID from an input dialog box and will determine whether or not the Hot Fix is installed on a list of machines contained in a text file called MachineList.Txt. It will [...]
Posted by Billy.F in March 17, 2010
Add IP address
IF NOT EXIST C:\WINDOWS\system32\drivers\etc\hosts_o Copy C:\WINDOWS\system32\drivers\etc\hosts C:\WINDOWS\system32\drivers\etc\hosts_o
Copy C:\WINDOWS\system32\drivers\etc\hosts C:\WINDOWS\system32\drivers\etc\hosts_bk /y
echo 1.5.3.8 x.xxx.com >> C:\WINDOWS\system32\drivers\etc\hosts
Remove IP address
Copy C:\WINDOWS\system32\drivers\etc\hosts C:\WINDOWS\system32\drivers\etc\hosts_bk2 /y
Copy C:\WINDOWS\system32\drivers\etc\hosts_o C:\WINDOWS\system32\drivers\etc\hosts /y
Posted by Billy.F in February 19, 2010
Crontab 不會自動執行 修復、處理步驟
發現 Crontab 已經好幾天都不會執行, 有點詭異.
直接 crontab -e 再去 新增 / 修改 也都不會動, 手動執行都是正常.
註: crontab 寫法都是正確的.
檢查、更新 Crontab
做下述的檢查、重新設定的動作看看.
ls /var/spool/cron/crontab # 看權限是某正確, 資料是否正確.
若有使用 flock, 然後有存 tmp file 的, 把那些 tmp file 都砍了.
crontab -l > cron_backup; crontab -r; crontab cron_backup # 把 crontab 砍掉重新匯入
以上都做過, Crontab 還是都不會動.
解法
上述做法都沒有用, 最後試試 重新啟動 cron, 結果就可以動了, [...]
Posted by Billy.F in November 6, 2009
———-
strTitle=”INSERT_WINDOW_TITLE_HERE”
Dim WSHShell
Set WSHShell=WScript.CreateObject(“WScript.Shell”)
WSHShell.Popup”INSERT_WINDOW_MESSAGE_TEXT_HERE”,3,strTitle
———-
Posted by Billy.F in September 29, 2009
Use This Sample Script to Check the Current IP Address
http://www.vbsedit.com/scripts/network/client/list/scr_808.asp
Use this Sample Script to change the Time Zone
http://www.vbsedit.com/scripts/os/dates/scr_957.asp
Posted by Billy.F in September 23, 2009
Graphical User Interface and Script Editor