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

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World