Topic "How to upload file to each of the sub folders?"

Author Message


How do I use scripting to upload a single file to each of the sub folders in my ftp?

I have a big folder called "users" , and its sub folders are called "Mary","John","Peter",etc.

There are hundreds of sub folders and I don't want to enter their names one by one.

Is there a simple way to do it? Thanks.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26905
Location: Prague, Czechia
It's easy with a WinSCP .NET assembly. Just use a Session.ListDirectory to enumerate all folders and than call a Session.PutFiles for each.

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License