With ShellExecute(Ex) : Launching Applications (ShellExecute, ShellExecuteEx, SHELLEXECUTEINFO)
How to use PSCP to copy file from one machine to another using vc++ code
raghav kuppili
1
Reputation point
How to write this command using vc++ code, Through the command prompt it will executing this command but in vc++ how to invoke this command
Ex: pscp -pw Mypassword file.cfg root@127.0.0.1:/filesys/net/provisioned/file.cfg
Thank you in advance
Developer technologies C++
3,970 questions
2 answers
Sort by: Most helpful
-
-
Viorel 122.5K Reputation points
2022-12-19T11:32:56.623+00:00 In vc++ you can try the system function:
#include <stdlib.h> . . . system( "pscp -pw Mypassword file.cfg root@127.0.0.1:/filesys/net/provisioned/file.cfg" );
See also the _exec and _spawn functions.