D:\>one.cmd
success
D:\>cmd /c one.cmd
fail
Last active
April 5, 2023 19:21
-
-
Save JayBazuzi/b88efe9ddb01235b7d401d3e421e9d19 to your computer and use it in GitHub Desktop.
This batch file produces different results depending on where I run it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@two.cmd && echo success || echo fail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@exit /b 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment