debugging - Visual Studio - launch .bat file as startup project -


i have c++ program i'm trying debug. run .bat file file cleanup before running program. can run program script , attach debugger, more convenient launch .bat file vs. if set startup project's command property bat file error it's unrecognized binary format (because it's not binary format, suppose). can set command cmd.exe , command shell opens, haven't figured out how pass .bat file command shell. i've tried including on properties command line, , without redirection char (<), , tried passing argument command, neither of these work. i've gotten close enough think there must way this, i'm running out of ideas.

i recommend instead of calling batch file @ end starting application, add post-build event in "build events" project settings. in post-build event type clean-up code, omit "program start" line. let vs run program. way not need attach program


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -