I've been told that using system(...) to run external applications is bad practice.
Currently I'm using the following line of code:
system("a:\\Extract.exe /Y/A/E/L "+targetDir+" a:\\TSPDv.cab"
This is supposed to extract a cab file to targetDir. If this really is bad programming practice can someone tell me what I should do??? Otherwise this seems to work fine for my requirements. (I am only writing a small program to extract a number of files to a certain specified directory and a few other minor tasks.)
Thanks
Currently I'm using the following line of code:
system("a:\\Extract.exe /Y/A/E/L "+targetDir+" a:\\TSPDv.cab"
This is supposed to extract a cab file to targetDir. If this really is bad programming practice can someone tell me what I should do??? Otherwise this seems to work fine for my requirements. (I am only writing a small program to extract a number of files to a certain specified directory and a few other minor tasks.)
Thanks