- 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)の代わり