I've been trying to do some stuff like copying files and changing attributes of files using C++.
However, there's a irritating command window which pops up and goes away in a split second whenever I use system(command).
For example:
Code:
system("copy .\\test.exe /B C:\\test.exe /B");
However, as I mentioned above, a command window will pop up, and goes away in a split second.
For copying of files, I can probably use the manual method of copying using file manipulation in binary mode, but I do not know other alternatives for changing attributes of files.
So, can you guys offer me a solution? Is there another function in C++ that changes attributes of files, or is there a way to stop the command window from popping up?
Thanks in advance!
