코드로 scp 명령을 수행해야 하는데 해결 방법이 있을까요?
ps) qprocess로 실행 시 scp 명령이 유효하지 않는 것 같습니다.
I need to run the scp command with the code, is there any workaround?
P.S. The scp command doesn't seem to be valid when executed with qprocess.
(translated with DeepL)
If you want to start a QProcess and run scp do something like this:QProcess process; // Path to your scp, wherever it is... // e.g. C:/Windows/System32/OpenSSH/scp.exe QString command = "C:/Program Files/Git/usr/bin/scp.exe"; // you need full path to scp.exe here // or register in PATH variable on your system so that Windows knows the "scp" command and where the program is located QStringList params; params.append("/C/Path/to/File"); params.append("user@host:/C/Destination/Path/"); process.start(command, params, QIODevice::ReadWrite);