I have a bat file with code:
echo Hello There > Result.txt
@exit 0
File is located in folder named "batch" which is located in the project root.
I am calling it with this code in post-build event:
call "$(ProjectDir)batch\post.bat"
I am using @exit 0 because otherwise I get error code 1 (which I guess tells me that command didn't succeed).
When I double click on bat file or invoke it from cmd it creates a file. What do I need to do in order to make this work
EDIT: Guys, make sure your file is in ASCII encoding. I've created mine with VS which sets encoding to UTF by default.