Add a new flag to the robocopy command to specify the names of folders contained in the path

Copper Contributor

Hi!
Please add new flag for robocopy that would allow copying only those files whose path contains directories that match the specified names and paths. This is similar to the /xd flag, but with the opposite effect. This would be very helpful. Without this flag, you will have to use the /xd flag, specifying a large number of folders to exclude. Please improve this command.

 

For example, let it be the /id flag:

robocopy \\server\project \\server\project_backup *.usd /id cache /s /xo /z

It copies all usd-files whose path contains a folder named "cache".

 
0 Replies