Home > OS >  Visual Studio exited with code 1 post-build event explorer
Visual Studio exited with code 1 post-build event explorer

Time:03-24

I have a simple post-build event to open Explorer. However, when I include this line, I always get an error, "exited with code 1" but Exporer opens to the folder specified.

How can I do this without reciving the error?

E.g., add the following line to a post-build event:

explorer C:\\aa

CodePudding user response:

Add another line "exit /b 0". This will tell the command to exit with error code 0.

CodePudding user response:

Thank you for the suggestions. I managed to solve it by changing to:

start "" C:\aa

  • Related