This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Criteria Copy Question

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) Printable version
View previous topic :: View next topic  
Author Message
stavros92
Junior Member
Junior Member


Joined: 01 Jun 2018
Posts: 2

PostPosted: Fri Jun 01, 2018 1:49 am    Post subject: Criteria Copy Question Reply with quote

Hi all. I tried to find a solution but no luck...(although I tried some plugins like copytree etc) still no luck.
I have a folder containing many subfolders where each one of them contains a text file and some mp3s.
I want to search for some specific text in all text files, feed to listbox all that contain my keyword and then copy each ENTIRE subfolder (containing the text file AND the mp3s).
Using the plugins I only managed to copy the subfolder structure, the text file containg the keyword but NOT the rest of the files included in each subfolder. Any ideas? THANXXX
Back to top
View user's profile Send private message
nsp
Power Member
Power Member


Joined: 04 Dec 2005
Posts: 1174
Location: Lyon (FRANCE)

PostPosted: Fri Jun 01, 2018 6:29 am    Post subject: Re: Criteria Copy Question Reply with quote

stavros92 wrote:
Hi all. I tried to find a solution but no luck...(although I tried some plugins like copytree etc) still no luck.
I have a folder containing many subfolders where each one of them contains a text file and some mp3s.
I want to search for some specific text in all text files, feed to listbox all that contain my keyword and then copy each ENTIRE subfolder (containing the text file AND the mp3s).
Using the plugins I only managed to copy the subfolder structure, the text file containg the keyword but NOT the rest of the files included in each subfolder. Any ideas? THANXXX

If you only want to copy one level at the time, you could use TCBL to do it using the folowing processs.
Find all text file containing the keyword and feed to listbox.
Select all and use a TCBL command.

This could be the tcbl command to insert in tcbl.ini
Code:
[copyTxtNmp3s]
ini=q
cmd=md "$1\$p1"
cmd=copy /Y "$f" "$1\$p1"
cmd=copy /Y "$p*.mp3" "$1\$p1"


create an em_command or a button like:
Code:
command: <path to tcbl.exe>
parammeter: -iep %L copyTxtNmp3s %T


it only works for regular folder the ep option let you see the generated batch file in notepad and wait after completion.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group