Scripting - get list of files at remote computer

Advertisement

xpressive
Joined:
Posts:
1

Scripting - get list of files at remote computer

Hi all,

I am using WinSCP within a windows batch-file.

What I want to do is to create a file on my local computer through WinSCP.
This file should contain an overview of all files located at the remote computer.

Is that possible ?

Thanks in advance

Reply with quote

RickB
Guest

Yes you can

cmd /c winscp3.com /command "open user@host" "ls" > foo.txt

Obviously winscp3 has to be in your PATH and change user@host to the correct saved session name

Reply with quote

Advertisement

You can post new topics in this forum