in reply to Executing DOS shell commands via system()
cbro was spot on. Also, concerning your use of system... This is probably what you want/mean:
See system concerning return value.