« * K @mdowst.dowst.dev

Matthew Dowst @mdowst.dowst.dev

2026-11-19 11:09 UTC

PowerShell has two ways to tell you if a command failed: $? and $LASTEXITCODE. They might seem interchangeable, but they aren't. And sometimes a failed command isn't actually a failure. I break down the differences, with examples, in my latest blog post. dowst.dev?p=4159 #PowerShell

Link: The Difference Between $? and $LASTEXITCODE in PowerShell - Dowst.Dev (dowst.dev?p=4159)

6 likes, 2 reposts, 1 replies

3 Next post4 More from @mdowst.dowst.devBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup