I have a requirement to read the file names from SFTP folder and write into a local directly./ Please, can someone advise a simple way to do it from the command line?
I have tried in this way but the output is not as per expectation.
winscp.com userName:passworddxbegap131dv /script=dolist.txt > file.txt.
The output from script:-
Opening session using command-line parameter in scripting is deprecated. Use 'open' command instead.
Searching for host...
Connecting to host...
Using username "HRAppoint_Staging".
Authenticating with pre-entered password.
Starting the session...
Reading remote directory...
Active session:  HRAppoint_Staging@dxbegap131dv
Ex[pected output -