call batch file return value

im using vc++. im calling a batch file using system(const char*). i want the batch to return a value to indicate that it ran successfully or not. how do i do this?
LVL 4
RaymunAsked:
Who is Participating?
 
ozoConnect With a Mentor Commented:
exit 0
exit 1
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.