Upload to all directories within a directory

Advertisement

myultima
Joined:
Posts:
1
Location:
EU

Upload to all directories within a directory

Hello!

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.

Thanks!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Upload to all directories within a directory

You can write a (PowerShell) script that enumerates the remote folders and then uploads the files to each.

Reply with quote

Advertisement

You can post new topics in this forum