Visual C++ system command batch file -


when type name of batch file on command line, executes fine, when run vis c++ program uses system("gen.bat") command, doesn't execute it!

here how i'm doing it:

int ret = system("gen.bat"); 

you should specify full path of batch file this:

int ret = system("c:\\folder_name\\gen.bat"); 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -