Topic "Upload to all directories within a directory"

Author Message
[View user's profile]

Joined: 2016-08-10
Posts: 1
Location: EU

How can i upload a file into all folders in a "user" directory without manually writing a destination to each folder?

Will this one line work...

put example.txt /home/user/*.*/

instead of..

put example.txt /home/user/folder1/
put example.txt /home/user/folder2/
put example.txt /home/user/folder3/


Because i have a lot of folders and it's going to be hard to manually insert all the destinations.

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
You can write a (PowerShell) script that enumerates the remote folders and then uploads the files to each.

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License