Skip to content

Instantly share code, notes, and snippets.

@JayBazuzi
Last active April 5, 2023 19:21
Show Gist options
  • Save JayBazuzi/b88efe9ddb01235b7d401d3e421e9d19 to your computer and use it in GitHub Desktop.
Save JayBazuzi/b88efe9ddb01235b7d401d3e421e9d19 to your computer and use it in GitHub Desktop.
This batch file produces different results depending on where I run it
D:\>one.cmd
success

D:\>cmd /c one.cmd
fail
@two.cmd && echo success || echo fail
@exit /b 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment