If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
system() spawns a shell (in a separate process). So your sub-process cd's to the directory just fine, but YOUR process stays put. Unless you use chdir().