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

Author Message
Dar

Guest


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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
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.
http://winscp.net/eng/docs/library_session_listdirectory
http://winscp.net/eng/docs/library_session_putfiles
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