Get a file in one line

Advertisement

GrandGTO
Joined:
Posts:
1

Get a file in one line

Hi,
I build a short script in C++ to download by SFTP a file.
So I made this :
system("\"\"%PROGRAMFILES(x86)%\\WinSCP\\WinSCP.com\"\" login:password@IP/folder get file.txt C : \\Users\\MyUser\\Downloads\\file.txt");

It returns an error telling that there is a missing parameter in the get command.

Can someone tell me the right synthax please ?

Thank you

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum