FG
💻 Software

Get exit status of last executed command in Windows?

Fresh6 days ago
Mar 15, 202637339 views
Confidence Score0%
0%

Problem

Is there something like Unix's in Windows?

Error Output

echo $?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Get exit status of last executed command in Windows?

Low Risk

Use the errorlevel environment variable: This question on stackoverflow has more detailed information.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment