Windowsでのコマンドの終了コード - $?相当
#Windows #コマンド #PowerShell
code:cmd
echo %ERRORLEVEL%
code:powershell
echo $LASTEXITCODE # the code itself
echo $? # a boolean, fail or succeed
参考: https://doc.rust-jp.rs/the-rust-programming-language-ja/1.6/book/testing.html