Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Possible to double buffer controls? Pin
bob1697222-May-06 3:13
bob1697222-May-06 3:13 
QuestionDOS Commands Pin
cberam22-May-06 1:52
cberam22-May-06 1:52 
AnswerRe: DOS Commands Pin
Russell'22-May-06 2:01
Russell'22-May-06 2:01 
GeneralRe: DOS Commands Pin
cberam22-May-06 2:06
cberam22-May-06 2:06 
GeneralRe: DOS Commands [modified] Pin
Russell'22-May-06 2:30
Russell'22-May-06 2:30 
AnswerRe: DOS Commands Pin
Rage22-May-06 2:02
professionalRage22-May-06 2:02 
AnswerRe: DOS Commands Pin
kakan22-May-06 2:07
professionalkakan22-May-06 2:07 
AnswerRe: DOS Commands Pin
Laxman Auti22-May-06 2:33
Laxman Auti22-May-06 2:33 
cberam wrote:
How to execute DOS commands in MFC. I use WinExec() to use COPY commands.
It works fine to copy files to local directory/system. But it fails to copy file to another PC in the network.

WinExec("cmd /c copy Prints.txt \\avon\Prints",SW_SHOW);

\\avon is the network PC with shared folder Prints


Have a try with system API
system("copy c:\\test.txt \\\\Test\\mydata");



Knock out 't' from can't,
You can if you think you can
Cool | :cool:
AnswerRe: DOS Commands Pin
David Crow22-May-06 3:09
David Crow22-May-06 3:09 
AnswerRe: DOS Commands Pin
ThatsAlok22-May-06 4:39
ThatsAlok22-May-06 4:39 
Questionprogram crashing Pin
zahid_ash22-May-06 1:35
zahid_ash22-May-06 1:35 
AnswerRe: program crashing Pin
Cedric Moonen22-May-06 1:38
Cedric Moonen22-May-06 1:38 
GeneralRe: program crashing Pin
zahid_ash22-May-06 1:45
zahid_ash22-May-06 1:45 
GeneralRe: program crashing Pin
Cedric Moonen22-May-06 1:58
Cedric Moonen22-May-06 1:58 
GeneralRe: I think admin rights is the problem Pin
zahid_ash22-May-06 2:08
zahid_ash22-May-06 2:08 
GeneralRe: I think admin rights is the problem Pin
Cedric Moonen22-May-06 2:12
Cedric Moonen22-May-06 2:12 
GeneralRe: I think admin rights is the problem Pin
zahid_ash22-May-06 2:29
zahid_ash22-May-06 2:29 
GeneralRe: I think admin rights is the problem Pin
Russell'22-May-06 2:46
Russell'22-May-06 2:46 
GeneralRe: I think admin rights is the problem Pin
zahid_ash22-May-06 3:09
zahid_ash22-May-06 3:09 
GeneralRe: I think admin rights is the problem Pin
David Crow22-May-06 3:11
David Crow22-May-06 3:11 
GeneralRe: I think admin rights is the problem Pin
zahid_ash22-May-06 3:16
zahid_ash22-May-06 3:16 
AnswerRe: program crashing Pin
ThatsAlok22-May-06 4:42
ThatsAlok22-May-06 4:42 
AnswerRe: program crashing Pin
Hamid_RT22-May-06 7:18
Hamid_RT22-May-06 7:18 
Questionwhat is owner draw Pin
Ramu.e22-May-06 1:31
Ramu.e22-May-06 1:31 
AnswerRe: what is owner draw Pin
Russell'22-May-06 1:54
Russell'22-May-06 1:54 

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.