Click here to Skip to main content
15,887,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRun copy command in the background using vc++ Pin
raj157614-Feb-10 18:17
raj157614-Feb-10 18:17 
AnswerRe: Run copy command in the background using vc++ Pin
«_Superman_»14-Feb-10 18:45
professional«_Superman_»14-Feb-10 18:45 
GeneralRe: Run copy command in the background using vc++ Pin
raj157614-Feb-10 19:21
raj157614-Feb-10 19:21 
GeneralRe: Run copy command in the background using vc++ Pin
«_Superman_»14-Feb-10 19:32
professional«_Superman_»14-Feb-10 19:32 
GeneralRe: Run copy command in the background using vc++ Pin
raj157614-Feb-10 20:25
raj157614-Feb-10 20:25 
GeneralRe: Run copy command in the background using vc++ Pin
«_Superman_»14-Feb-10 20:32
professional«_Superman_»14-Feb-10 20:32 
GeneralRe: Run copy command in the background using vc++ Pin
David Crow15-Feb-10 4:27
David Crow15-Feb-10 4:27 
AnswerRe: Run copy command in the background using vc++ Pin
Adam Roderick J14-Feb-10 19:44
Adam Roderick J14-Feb-10 19:44 
I dont think its better to use copy command, instead use Copy file API( [^])

Well if you still want to stick with your choice then :-
1. Use CreateProcess
use CreateProcess with second parameter is command line argument([^]), where there is a optional structure STARTINFO([^]), having the wShowWindow to show or hide the window.
2. Use ShellExecute([^])

Eg:-
NT/2k/XP/2k3
ShellExecute( NULL, "open", "cmd.exe /C \"DEL /f /s /q c:\\check\\*\"",  NULL, NULL, SW_HIDE );  


Win9x
ShellExecute( NULL, "open", "command.com /C \"DEL /f /s /q c:\\check\\*\"",  NULL, NULL, SW_HIDE ); 
Величие не Бога может быть недооценена.

GeneralRe: Run copy command in the background using vc++ Pin
raj157614-Feb-10 23:11
raj157614-Feb-10 23:11 
AnswerRe: Run copy command in the background using vc++ Pin
Maximilien15-Feb-10 1:35
Maximilien15-Feb-10 1:35 
GeneralRe: Run copy command in the background using vc++ Pin
David Crow15-Feb-10 4:29
David Crow15-Feb-10 4:29 
AnswerRe: Run copy command in the background using vc++ Pin
KingsGambit14-Feb-10 20:01
KingsGambit14-Feb-10 20:01 
QuestionI offer web hosting in exchange for help! Pin
pablomartin14-Feb-10 18:12
pablomartin14-Feb-10 18:12 
AnswerRe: I offer web hosting in exchange for help! Pin
CPallini14-Feb-10 20:56
mveCPallini14-Feb-10 20:56 
GeneralRe: I offer web hosting in exchange for help! Pin
pablomartin14-Feb-10 21:08
pablomartin14-Feb-10 21:08 
NewsGood collection of questions on C, C++, C++ under Windows, MFC, DLL, COM/DOM Pin
Member 244827914-Feb-10 18:11
Member 244827914-Feb-10 18:11 
QuestionHow to set CD Name option through coding. Pin
Abhijit D. Babar14-Feb-10 17:53
Abhijit D. Babar14-Feb-10 17:53 
AnswerRe: How to set CD Name option through coding. Pin
«_Superman_»14-Feb-10 18:58
professional«_Superman_»14-Feb-10 18:58 
GeneralRe: How to set CD Name option through coding. Pin
Abhijit D. Babar14-Feb-10 19:45
Abhijit D. Babar14-Feb-10 19:45 
GeneralRe: How to set CD Name option through coding. Pin
«_Superman_»14-Feb-10 20:04
professional«_Superman_»14-Feb-10 20:04 
Questionimport 3D with VC6 [modified] Pin
tuan111114-Feb-10 16:41
tuan111114-Feb-10 16:41 
AnswerRe: import 3D with VC6 Pin
LunaticFringe14-Feb-10 22:57
LunaticFringe14-Feb-10 22:57 
QuestionCan't use Enter Key - IWebBrowser2 Pin
VIP-CoMmAnDo14-Feb-10 10:20
VIP-CoMmAnDo14-Feb-10 10:20 
AnswerRe: Can't use Enter Key - IWebBrowser2 Pin
KarstenK14-Feb-10 21:01
mveKarstenK14-Feb-10 21:01 
QuestionStructures and Classes giving me problems. This program simply calculates volume of a CBox class. Pin
rbwest8614-Feb-10 9:45
rbwest8614-Feb-10 9:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.