2021年7月24日 星期六

2021年7月20日 星期二

Windows command 計算行數

Reference:

C:\>find /?
搜尋一或多個檔案中的文字字串。

FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] "string" [[drive:][path]filename[ ...]]

  /V         顯示所有不包含指定字串的行。
  /C         只顯示包含字串的行數。
  /N         顯示每一行及它的行號。
  /I         當搜尋字串時,忽略字元的大小寫。
  /OFF[LINE] 不要略過有離線屬性集的檔案。
  "string"   指定要尋找的文字字串。
  [drive:][path]filename
             指定要搜尋的一或多個檔案。

如果沒有指定路徑,FIND 會搜尋在提示時所輸入的文字
或者在其他的命令中搜尋。

  • 計算所有行數
    • Ex: netstat -ano | find /v /c ""
  • 計算符合的行數,不分大小寫
    • Ex: netstat -ano | find /c "listen"


2021年7月14日 星期三

Windows server 修改 time_wait

Reference:

執行 regedit
進入 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
新增 REG_DWORD: TcpTimedWaitDelay
Range: Windows Server 2012R2 和更新版本: 2-300 (decimal)


2021年7月7日 星期三

Windows 10 安裝 PADS 9.x 問題

狀況:
安裝 PADS 時出現錯誤為 The following ePD applications are rinning - please shut them down and click OK to continue. Dashboard

Windows 10 執行 PDAS 卡住

Reference:

狀況:
Windows 10 更新,造成 PADS 開啟後過幾分鐘就無法操作。

解法:
設定輸入法使用以前的版本。