hi all,
iam sending a copy command to command prompt with system () api.. but command prompt is poping up.
I want to hide the command prompt.
is there any other way to do it.
thanx in advance
Printable View
hi all,
iam sending a copy command to command prompt with system () api.. but command prompt is poping up.
I want to hide the command prompt.
is there any other way to do it.
thanx in advance
Take a look at the following FAQ...
That was great.
Is this correct ?
iam using copy c:\test.txt d:\test2.txt
doing this with system()
this pops up the command prompt.
=======
the equivalent of this in your FAQ is
ShellExecute(0,"open","c:\\windows\\cmd.exe", "c:\test.txt d:\test2.txt", 0,SW_HIDE);
Will this hide the command prompt...
Manibee
Why not use the Windows CopyFile API - much simpler.
No...since you are explicitly creating one by starting 'cmd.exe'.Quote:
Originally posted by manibee
Will this hide the command prompt...
Nevertheless, I missed the 'copy operation' part in the original message...there exists of course better functions to use...e.g. 'CopyFile()'...
Why do you want to create a new process for that?