Skip to content

Instantly share code, notes, and snippets.

@f7q
Last active April 8, 2018 05:20
Show Gist options
  • Save f7q/6c66110d7405123240c6038059ff0d82 to your computer and use it in GitHub Desktop.
Save f7q/6c66110d7405123240c6038059ff0d82 to your computer and use it in GitHub Desktop.
Utility Tools Note
  • Windows
    • cipher /w:c
    • fsutil file testfile 10485760
    • cmd /c start http://www.yahoo.co.jp
    • reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters" /v TcpTimedWaitDelay /t REG_DWORD /d 60 /f
    • powershell compress-archive %CD%\Test %CD%\Test.zip
    • powershell expand-archive %CD%\Test.zip
    • dir /s /b | findstr /e <ファイル名>
    • dir /s /b *.* | findstr /i /b Nuget
    • certutil -hashfile %CD%\aaa.zip MD5
    • certutil -csplist  - powershell Get-ChildItem Cert:\  - powershell New-SelfSignedCertificate -Certstorelocation Cert:\CurrentUser\My -dnsname orin.windowsitpro.internal
       - powershell Export-PfxCertificate -cert cert:\CurrentUser\my\aaaaaaa -FilePath %CD%\cert.pfx パスワード引数は検討
  • Linux
    • bash
while read line; do
  echo $line
done < file.txt
#done < /tmp/file.txt
  • shell $@$1など一括用のコマンド引数として使える
    $? exit-code

  • cmd %*%1 など一括用のコマンド引数として使える
    %CD%
    `%ERRORLEVEL%

  • powershell $Args
    $? exit-code
    $Pwd %CD%や$(pwd)の代わり

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment