i have multiple user profiles under c:\users
under each one i have desktop/documents/download etc.
i'm looking for a way to copy only the desktop and it's content while preserving folder path structure
destination folder will be c:\backup
so i need to get to a situation where i have :
c:\backup\users\user1\desktop + it's content
c:\backup\users\user2\desktop + it's content
is there a syntax i can put in the copy action to do such a thing? or maybe other option in total commander? thank you
In the copy dialog box hit F8 to bring the "Define selection" dialog box. There in the Plugins tab select Tc.Path.Contain and put 'Desktop' in the value box.
Save this selection, close the dialog box and select the item you just created from the dropdown menu. Press OK.
This will create the whole directory structure in the destination folder, but only the content of the desktop folders will be copied.
- in advanced, tick Attributea and set directory to empty.
- On plugin tab, tick Search in plugin [in first rule,] use [tc] [path] [Regex] with:
Code: Select all
- Save to "usersDesktop"or any name you prefer you will be able to use it as >usersDesktop
From wich folder do you start ?
If you want to copy all users folder, you should start from C:\Users and if you want to get all users desktop, TC should run as Admin.
AFAIK it is not possible without creating all other folders. Anyway it will copy only the content of the desktop folders.
Otherwise you can perform a search under the same criteria, feed the results in the listbox, select all and use TreeCopyPlus plugin. The plugin will retain the folder structure while copying found files.