Categories
- FFMpeg (5)
- Libav (1)
- Google (3)
- iBeacon (1)
- LDAP (3)
- Me (2)
- Network (11)
- OS (149)
- RTMP (4)
- SIP (1)
- Kamailio (1)
- SNMP (1)
- VMware (20)
- VCP考試 (1)
- 伺服器 網站服務 (105)
- 名詞解釋 (4)
- 專案管理 (1)
- 工具軟體 (50)
- Adobe (1)
- FMS (1)
- Cloudera (1)
- Docker (1)
- Eclipse (4)
- Intellij (2)
- OBS (2)
- Office (10)
- Excel (4)
- PowerPoint (5)
- Postman (1)
- Splunk (13)
- Virtualbox (2)
- Visual Studio (2)
- 文字編輯器 (10)
- Sublime Text 2 (6)
- Sublime Text 3 (3)
- Vim (3)
- 連線工具 (1)
- Xshell (1)
- Adobe (1)
- 程式語言 (79)
- CSS (2)
- HTML (2)
- iOS (1)
- Java (30)
- JavaScript (5)
- jQuery (4)
- jsTree (2)
- JSP (3)
- PHP (16)
- Python (7)
- Ruby (1)
- sed (1)
- Shell Script (8)
- Windows Bash Script (1)
- XML (1)
- 資料庫 (37)
- FFMpeg (5)
Category Archives: Windows
Install Windows 10 preview in virtualbox
Ref: http://www.sysprobs.com/install-windows-10-on-virtualbox-and-its-guest-additions
Posted in Virtualbox, Windows
Leave a comment
使用 Windows 內建 netsh 進行 Port Forwarding
將 local listen 的 610 port 轉發至 10.201.80.94 的 4444 port netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=610 connectaddress=10.201.80.94 connectport=4444 將 1 建立的 rule 刪除 netsh interface portproxy delete v4tov4 listenaddress=127.0.0.1 listenport=610 秀出目前建立的 rule netsh interface portproxy show all
Posted in Windows
Leave a comment
Windows 7 convert MAK to KMS
先根據Windows 7版本輸入下述金鑰 Windows 7 Professional : FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4 Windows 7 Professional N : MRPKT-YTG23-K7D7T-X2JMM-QY7MG Windows 7 Enterprise : 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH Windows 7 Enterprise N : YDRBP-3D83W-TY26F-D46B2-XCKRJ Windows 7 Enterprise E : C29WB-22CC8-VJ326-GHFJW-H9DH4 啟用後再使用命令提示字元 (以管理員身分執行) 進行 slmgr 等指令
Posted in Windows
Leave a comment
typeperf 監控 M$ 系統資源
typeperf -qa > counters.txt 將 typeperf 可用的參數輸出到 counters.txt typeperf -c “參數值” 持續針對設定參數獲得系統資訊 typeperf -c “參數值” -sc 1 僅對設定參數執行一次性取得系統資訊 typeperf -cf “參數檔案” -sc “次數” -f “CSV” -o counter_out.csv 讀取參數檔案,進行幾次性的系統資訊擷取,並將結果以 CSV 檔案格式輸出成檔名 center_out.csv
Posted in Windows
Leave a comment
Windows 創建當天目錄
1 |
if not exist %date:~0,4%-%date:~5,2%-%date:~8,2% (md %date:~0,4%-%date:~5,2%-%date:~8,2%) |
假設目錄不存在,則創建目錄 目錄名稱 西元年-月-日 (Ex. 2013-06-18) :~0,4 ==> 類似substr的功用
Posted in Windows
Leave a comment
Ping 前面加上時間戳記
其實寫程式或是架Smokeping就好了,不過就是懶… 以下是網路上搜尋到的寫法 (來源)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
Dim args, flag, unsuccOut args="" otherout="" flag=0 If WScript.Arguments.count = 0 Then WScript.Echo "Usage: cscript tping.vbs [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]" WScript.Echo " [-s count] [[-j host-list] | [-k host-list]]" WScript.Echo " [-r count] [-w timeout] destination-list" wscript.quit End if For i=0 to WScript.Arguments.count - 1 args=args & " " & WScript.Arguments(i) Next Set shell = WScript.CreateObject("WScript.Shell") Set re=New RegExp re.Pattern="^Reply|^Request|^回覆自" Set myping=shell.Exec("ping" & args) while Not myping.StdOut.AtEndOfStream strLine=myping.StdOut.ReadLine() r=re.Test(strLine) If r Then WScript.Echo date & " "& time & chr(9) & strLine flag=1 Else unsuccOut=unsuccOut & strLine End if Wend if flag = 0 then WScript.Echo unsuccOut end if |
用法為 cscript 本程式名稱 [參數]
Posted in Windows
Leave a comment
Windows 檔案權限問題 #2
續先前的記錄 Windows 檔案權限問題 其實網路上有個更快的方法,透過修改機碼的方式增加右鍵選單來取得檔案權限TakeOwnership 其實裡面的內容看起來就是把 cmd 的內容以右鍵取代了
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT*shellrunas] @="Take Ownership" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT*shellrunascommand] @="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F" "IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F" [HKEY_CLASSES_ROOTDirectoryshellrunas] @="Take Ownership" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOTDirectoryshellrunascommand] @="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t" "IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t" |
如果想刪除的話
1 2 3 4 5 |
Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT*shellrunas] [-HKEY_CLASSES_ROOTDirectoryshellrunas] |
Posted in Windows
Leave a comment
Windows 檔案權限問題
將公司配發的 NB 升級到 Windows 8 因為是升級,所以在 C 碟下有一個 Windows.old 的資料夾佔了 2xG 空間….. 想刪卻刪不掉….. (硍) 都是得到權限不符的回應,所以 Administrator 根本就不是最高權限… 這時候以管理者模式執行命令提示字元下指令取得檔案的擁有權 (1) 取得單一文件權限
1 |
takeown /f Filename |
(2) 取得目錄權限
1 |
takeown /f Directory |
接著將 administrators 控制權限加入檔案中
1 |
icacls.exe Fileneme /grant:r "Administrators:F /t |
接著就可以刪除檔案了~ 附註: 快速刪除整個目錄 [指令說明頁面]
1 |
rmdir /s /q |
/s 為刪除目錄及目錄下所有文件 /q 為取消系統詢問刪除與否的確認訊息 附註: 不過遇到flash****.ocx還是會失敗 爬了一下網頁…發現是因為權限控制有屬於拒絕的幾個屬性 … Continue reading
Posted in Windows
Leave a comment
Windows 7 安裝 Telnet 伺服器
有幾個步驟 控制台 => 程式集 => 開啟或關閉 Windows 功能 => 勾選 Telnet 伺服器 電腦管理 => 服務與應用程式 => 服務 => Telnet 設為自動並啟動 電腦管理 => 系統工具 => 本機使用者和群組 => 使用者 => 選擇要登入的使用者點選”內容” => 成員隸屬 => 新增 “TelnetClients” 群組
Posted in Windows
Leave a comment