Topic "Get-ing Remove-ing all files from the sftp - exclude subdirs"

Author Message
AlLeX_
[View user's profile]

Joined: 2012-10-11
Posts: 13
Hello,

I want to get all files and exclude sub-directories from the remote sftp server after I connnect with winscp.com. command. After that I want to delete all files but not the sub-directories.

Any help would be haighly appreciated!
Thank you!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
See http://winscp.net/eng/docs/faq_script_non_recursive

For deleting downloaded files, you can use get -delete.
http://winscp.net/eng/docs/scriptcommand_get
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License