Topic "recursive chmod of files with the same extension"

Author Message


I want to change the permission (chmod) of some files with the same file extension,
which are not in the same directory.
More than 50 files somewhere in 100 directories.

I have no permission to unix console, but to FTP.

How can I do this?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26911
Location: Prague, Czechia
There's no easy way to do this with WinSCP (nor any other tool I know).

It's easy to recursively iterate the tree finding files matching a mask using WinSCP .NET assembly from PowerShell script.
See for example

But WinSCP .NET assembly does not support changing permissions, only scripting interface does.
But you can use the .NET assembly to search for the files and make it generate chmod scripting command for each matching file. And then execute the script.
Martin Prikryl

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