View Single Post
  #1 (permalink)  
Old 05-11-2008, 10:11 AM
telboon telboon is offline
Newbie
 
Join Date: May 2008
Posts: 15
Credits: 1
Rep Power: 2
telboon is on a distinguished road
Default How to get rid of command window?

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!
Reply With Quote

Sponsored Links