copy folder structure with files
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 5
- Joined: 2020-06-04, 09:13 UTC
copy folder structure with files
hi
new here
i have multiple user profiles under c:\users
example :
c:\users\user1
c:\users\user2
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
meaning
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
new here
i have multiple user profiles under c:\users
example :
c:\users\user1
c:\users\user2
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
meaning
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
Re: copy folder structure with files
Select all folders with usernames and press F5.
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 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.
-
- Junior Member
- Posts: 5
- Joined: 2020-06-04, 09:13 UTC
Re: copy folder structure with files
cool, thank you. is it possible to only copy the desktop content without copying any other empty folder?
Re: copy folder structure with files
If you use a stricter definition for your "Desktop filter" you can just copy files on Desktop folder only.
Use Search:
Use Search:
- 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
:\\users\\[^\\]+\\Desktop\\
- Save to "usersDesktop"or any name you prefer you will be able to use it as >usersDesktop
-
- Junior Member
- Posts: 5
- Joined: 2020-06-04, 09:13 UTC
Re: copy folder structure with files
it's not working
maybe i did something wrong
screenshot 1 : https://pasteboard.co/JbWYOFC.png
screenshot 2 : https://pasteboard.co/JbWZeVX.png
maybe i did something wrong
screenshot 1 : https://pasteboard.co/JbWYOFC.png
screenshot 2 : https://pasteboard.co/JbWZeVX.png
Re: copy folder structure with files
From the screenshot, it seems to be OK.
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.
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.
-
- Junior Member
- Posts: 5
- Joined: 2020-06-04, 09:13 UTC
Re: copy folder structure with files
oh i see. is there a way to start from c: and do f5 on the c:\users ?
that way, every time a new user comes, i wont have to do it manually
that way, every time a new user comes, i wont have to do it manually
Re: copy folder structure with files
AFAIK it is not possible without creating all other folders. Anyway it will copy only the content of the desktop folders.totalcommanderuser wrote: ↑2020-06-07, 05:43 UTC cool, thank you. is it possible to only copy the desktop content without copying any other empty folder?
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.