Move folders with specific files in to another location

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Poenika007
Junior Member
Junior Member
Posts: 2
Joined: 2015-05-24, 20:41 UTC
Location: Belgium

Move folders with specific files in to another location

Post by *Poenika007 »

I have a harddisk with more than 900 folders with files in.
265 folders contains BMP files together with other files.

I want to move the 265 folders with the BMP files complete to a other location on an other harddisk.

How can i automatic mark the 265 folders for move.


Do i need a script or a batchfile ?

Or can this be done easy in Totalcommander ?
User avatar
Dalai
Power Member
Power Member
Posts: 9409
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Assuming that you only have BMP files in that directories, you can do the following:
  • Install a packer plugin like CopyTree or TreeCopyPlus
  • Search for the files and feed them to the listbox
  • Mark the files and "pack" them using the plugin. The plugin will copy the files including their directory structure.
At the moment, I don't have an idea for the case that there're other files than just BMPs in the directories...

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Hacker
Moderator
Moderator
Posts: 13073
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Poenika007,
EmptyWDX
FileInDir

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
nsp
Power Member
Power Member
Posts: 1816
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Move folders with specific files in to another location

Post by *nsp »

Poenika007 wrote:I have a harddisk with more than 900 folders with files in.
265 folders contains BMP files together with other files.

I want to move the 265 folders with the BMP files complete to a other location on an other harddisk.

How can i automatic mark the 265 folders for move.


Do i need a script or a batchfile ?

Or can this be done easy in Totalcommander ?
if you only need to copy the bmp files with folder, you can:
(1)use a filter *.bmp
(2)select branch view from where you want to copy the tree
(3)select all files
(4)copy to target selecting "keep relative path"

If you also need additional files, you will have to decide if you copy also subfolder or not, hidden files .....
After you can use a tcbl if you do not need unicode ! a non optimal sample could be:

Code: Select all

command:<path to>\tcbl.exe
parameters:-ep %L robocopy $p <NEW Drive>:$p!  /XC
Poenika007
Junior Member
Junior Member
Posts: 2
Joined: 2015-05-24, 20:41 UTC
Location: Belgium

Post by *Poenika007 »

Thank's a lot. Very helpful.
Post Reply