Search and copy Video files only
Moderators: white, Hacker, petermad, Stefan2
Search and copy Video files only
I'd like to move all my videos inside MANY folders on my server to a new Video only folder.
Keeping the same folder structure on the new drive too.
So if a Video is in folder:
2006\2006-10-05
I want that same folder created and only the videos moved to the new drive under the same folder structures.
Is that possible?
Keeping the same folder structure on the new drive too.
So if a Video is in folder:
2006\2006-10-05
I want that same folder created and only the videos moved to the new drive under the same folder structures.
Is that possible?
Re: Search and copy Video files only
Select the folder(s) you want to copy and press F5 to copy them. Before confirming the copy, set the field "Only files of this type" to the file type(s) you want to copy. Advanced selections can be made by pressing the [+ F8] button ([+] button in older TC releases) and defining a search in the window that's opened by that button.
Note that you end up with empty directories of any of the source directories don't contain files of the specified type. But finding empty directories/folders is easy and there are already several threads about it.
Regards
Dalai
Note that you end up with empty directories of any of the source directories don't contain files of the specified type. But finding empty directories/folders is easy and there are already several threads about it.
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
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Search and copy Video files only
Thanks,
I was hoping to be able to do the windows "type" search
kind:videos
That way it finds all file formats of videos.
Is there a syntax in this tool that does that?
I was hoping to be able to do the windows "type" search
kind:videos
That way it finds all file formats of videos.
Is there a syntax in this tool that does that?
Re: Search and copy Video files only
TC itself can't do that AFAIK. But I guess it might be possible with the Everything tool which can be used from TC. No idea how to do a search with that because I don't use it.
Regards
Dalai
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
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Search and copy Video files only
You have to save search presets before using Search dialog (Alt+F7), then they will be available in Copy dialog. TC doesn't create any presets itself.
E.g. you can create Videos preset with all extensions listed (*.mkv *.avi *.wmv *.mp4 and so on) and then select >Videos in Copy dialog.
E.g. you can create Videos preset with all extensions listed (*.mkv *.avi *.wmv *.mp4 and so on) and then select >Videos in Copy dialog.
FAQs: Search (Find Files) - Load/Save settings
INFO: this here started as an answer for the question above but changed over time into a whole collection about this topic
With TC you can create your own Search criteria.
Let us borrow some how-to from 2petermad menu file (xxx_eng.ini):
Get: Extended Total Commander Menus >>> viewtopic.php?t=33740
[em_ext_show_videos]
cmd=cd *.3g* *.amc *.as? *.avi *.cel *.dcr *.dif *.dir *.divx *.dv *.dxr *.flc *.fli *.flv *.ivf *.lsf *.lsx *.m1? *.m4v *.m75 *.mov *.mp2* *.mp4 *.mpa *.mpe *.mpeg *.mpg *.mps *.mpv* *.mqv *.qt *.ra *.rf *.rm* *.rsml *.rv *.sdv *.spl *.swf *.vfw *.wm* *.wvx
menu=Show Video Files
button=wcmicons.dll,24
- - -
Save the search criteria:
- Launch the Search ("Find Files")
- Search for: *.flv *.avi *.mp4 *.mpeg
- Start the Search and Stop it just if you see it works.
- Empty the "Search in:" box.
- Switch to the [Load/Save] tab.
- Click [Save], save as 'videos' , or 'search_ForMyVideos' or 'mySavedSearch' or what you like.
- Close the "Find Files" dialog.
Store the Search as "vids" is shorter and quicker to type, but "search_ForMyVideos" better describes what that search will do.
The leading "search_" will help to gives an hint what that ini-entry for [Colors] and [Shortcuts] in the wincmd.ini is good for.
Use the search criteria:
- Now go to the top main folder for your search,
- Launch the Search ("Find Files").
- Check 'Select in subdirectories' [all(unlimited depth)].
- Select [Load/Save] and there 'search_ForMyVideos' and next [Load].
- Start the Search.
- Transfer the search result with bottom right [feed to listbox]-button to a normal list view (normal files and folders view).
* With [Backspace] you can leave the search result view.
* Or, with Shift-key while clicking [feed to listbox] you open the result in a new Tab.
Work with the search result:
- Now you can do all things you can do with TC, for example use F5 to Copy or F6 to Move.
- In the Copy dialog use [Options] to select 'Ask user' or 'Auto-rename'.
The saved search you can use in
- F5 Copy- or F6 Move- dialog as "Only files of this type: [ >search_ForMyVideos]".
- Menu "Show > Custom... Ctr+F12" as [>search_ForMyVideos] to filter the list view for that extensions.
- - - (note the ">search_ForMyVideos" hint in the address bar)
- - - (Ctrl+F10 = Show all files)
- a button as like:
Command: CD >search_ForMyVideos
Parameters:
Start path:
Icon file: wcmicons.dll
Tooltip: Filter for "my videos"
- - -
You can open the saved search settings from an button
Command: LOADSEARCH search_ForMyVideos
Parameters:
Start path:
Icon file: wcmicons.dll
Tooltip: your description here
You can open the saved search settings from an keyboard shortcut
Create the above own user defined command in usercmd.ini
and use the section name of that command in Options>Misc. for to assign an shortcut to.
https://ghisler.ch/board/viewtopic.php?p=344777#p344777
NOTE: that will open the search dialog, you can inspect the settings again and next click the [Start] button.
- - -
UPDATE 2020: Launch and immediately start to search
Put one equal sign = in front of name to start searching immediately,
Command: LOADSEARCH=saved search name
Put two equal sign == to start and feed to listbox after search (32/64)
Command: LOADSEARCH==saved search name
- - -
Change Search default settings:
If you want that search options always as default,
create a User defined Command in usercmd.ini
usercmd.ini:
[em_MySearchSettings]
CMD=LOADSEARCH search_ForMyVideos
"em_" is mandatory.
"MySearchSettings" is the name you gave that command.
"[em_MySearchSettings]" both together is the ini section name and the name for the User defined Command.
"LOADSEARCH" is the TC internal command.
"search_ForMyVideos" is the name you gave on saving your search settings.
Now assign a keyboard shortcut
You can use the original shortcut to open the search or another key combination you want.
In future the search is open always with your wanted settings.
To assign an keyboard shortcut key (hotkey) to an command, utilize
Configuration > Options > Misc.
>> Redefine hotkeys (Keyboard remapping)
* at "()Hotkey" choose a free key combo as keyboard shortcut (the button with the big black triangle shows the already used)
--or--
* at "()Alias" enter a few digits or letters for to use in TCs command line (for example "help" for to execute cm_HelpIndex)
*
* For "Command:" click on the magnifying glass
* and choose the wanted command by double clicking on it.
(To filter type em_ or cm_ and maybe more letters or just an keyword like 'copy')
* Apply with the green check mark button!!!
* Close the options dialog with [OK]
* Click on OK
( more at >> https://ghisler.ch/board/viewtopic.php?p=344777#p344777 )
- - -
I want that same folder structures created:
I'd like to move all my videos inside MANY folders on my server to a new Video only folder. Keeping the same folder structure on the new drive too.
- You need to install a (WCX packer)Plugin , here "TreeCopyPlus" from SUKER. (http://ghisler.ch/board/viewtopic.php?t=5378)
* Download from https://totalcmd.net/plugring/TreeCopyPlus.html , and in TC double click on the download and let install.
- Then you can select the wanted files and utilize by Alt+F5 the Pack-dialog.
- There you can select your Plugin and maybe even use the [Configure...]-button on some.
- For "TreeCopyPlus" use [Configure...] and adjust the "Number of upper levels to exclude [3]"
EDIT:
- - -
Search result show only name and ext.
On default the search result doesn't show the size or date column,
but you can create user defined Custom columns to show any column you like and many more by using plugins.
See Wiki > https://www.ghisler.ch/wiki/index.php/Custom_columns
or forum post https://ghisler.ch/board/viewtopic.php?p=351792#p351792
- - -
How-to to use 'Ctrl+F' -keys to launch the Find Files-dialog:
Edit your wincmd.ini and add this under [Shortcuts]
WINCMD.INI
[Configuration]
..
..
[Shortcuts]
;Enable 'F2'-key to start inline-rename mode, additional to origin 'Shift+F6'
F2=cm_RenameOnly
;Enable 'Ctrl+F' to start find-files, additional to origin 'Alt+F7'
C+F=cm_SearchFor
;Use 'Ctrl+O' to launch DOS-Box in current path
C+o=cm_ExecuteDOS
;Ctrl+0 (zero) to execute user defined command to launch PoSh in current path
C+0=em_LaunchPowerShell
See "TOTALCMD.INC" text file for more, like cm_SearchStandalone=545;Search in separate process
See "Add keyboard shortcut Hotkey to em_ or cm_ commands" >>> https://ghisler.ch/board/viewtopic.php?t=71927 for more about this topic.
- - -
HTH?
With TC you can create your own Search criteria.
Let us borrow some how-to from 2petermad menu file (xxx_eng.ini):
Get: Extended Total Commander Menus >>> viewtopic.php?t=33740
[em_ext_show_videos]
cmd=cd *.3g* *.amc *.as? *.avi *.cel *.dcr *.dif *.dir *.divx *.dv *.dxr *.flc *.fli *.flv *.ivf *.lsf *.lsx *.m1? *.m4v *.m75 *.mov *.mp2* *.mp4 *.mpa *.mpe *.mpeg *.mpg *.mps *.mpv* *.mqv *.qt *.ra *.rf *.rm* *.rsml *.rv *.sdv *.spl *.swf *.vfw *.wm* *.wvx
menu=Show Video Files
button=wcmicons.dll,24
More of Peters work
Get: Extended Total Commander Menus >>> viewtopic.php?t=33740
[em_ext_show_images1]
cmd=cd *.8bps *.acr *.adi *.ani *.anm *.b3d *.bmp *.cam *.cdr *.cdt *.cel *.cgm *.clp *.cmx *.cr2 *.crw *.cur *.cut *.dcm *.dcx *.dds *.dib *.djvu *.drw *.dxf *.ecw *.emf *.eps *.flc *.fli *.fpx *.fsh *.g3 *.gem *.gif *.gsm
menu=Show Image Files (1 - g)
button=wcmicons.dll,24
[em_ext_show_images2]
cmd=cd *.hgl *.icl *.ico *.iff *.ima *.img *.iw44 *.j2k *.jbg *.jbig *.jfif *.jif *.jng *.jp2 *.jpc *.jpe *.jpeg *.jpg *.jpm *.kdc *.lbm *.lbmp *.ldf *.lwf *.mac *.macp *.mng *.msp *.nlm *.nng *.nol
menu=Show Image Files (h - o)
button=wcmicons.dll,24
[em_ext_show_images3]
cmd=cd *.pat *.pbm *.pcd *.pct *.pcx *.pgm *.pic *.pict *.plt *.png *.pnt *.pntg *.ppm *.ps *.psd *.psp *.ras *.raw *.rgb *.rla *.rle *.scr *.sff *.sfw *.sgi *.spr *.sun *.sw *.swf *.tga *.tif *.tiff *.wap *.wbm *.wbmp *.wmf *.xbm *.xcf *.xpm
menu=Show Image Files (p - x)
button=wcmicons.dll,24
[em_ext_show_images_web]
cmd=cd *.gif *.jpg *.jpeg *.jpe *.png *.bmp
menu=Show Image Files (web formats)
button=wcmicons.dll,24
[em_ext_show_music]
cmd=cd *.mid *.midi *.kar *.rmi *.smf
menu=Show Music Files
button=wcmicons.dll,24
[em_ext_show_sounds]
cmd=cd *.669 *.aac *.adts *.aif *.aifc *.amr *.as *.au *.bwf *.caf *.cda *.cdda *.dsm *.far *.gsm *.it *.m3u *.m4a *.m4p *.mod *.mp1 *.mp2 *.mp3 *.mtm *.qcp *.ra *.rm *.rmm *.rmp *.rmx *.s3m *.sd2 *.snd *.stm *.ult *.ulw *.voc *.wav *.wax *.wma *.xm
menu=Show Sound Files
button=wcmicons.dll,24
[em_ext_show_videos]
cmd=cd *.3g* *.amc *.as? *.avi *.cel *.dcr *.dif *.dir *.divx *.dv *.dxr *.flc *.fli *.flv *.ivf *.lsf *.lsx *.m1? *.m4v *.m75 *.mov *.mp2* *.mp4 *.mpa *.mpe *.mpeg *.mpg *.mps *.mpv* *.mqv *.qt *.ra *.rf *.rm* *.rsml *.rv *.sdv *.spl *.swf *.vfw *.wm* *.wvx
menu=Show Video Files
button=wcmicons.dll,24
[em_ext_show_archives]
cmd=cd *.zip *.rar *.r0? *.cab *.arj *.lha *.uc2 *.ace *.arc *.pak *.zoo *.sqz *.hyp *.wsz *.jar *tgz *.qz *.z *.hqx *.uu *.uue *.sit *.7z *.aes *.icl *.sqx *.chm *.bzip2 *.bz2 *.wim *.xz *.its
menu=Show Archive Files
button=wcmicons.dll,24
[em_ext_show_webfiles]
cmd=cd *.htm *.html *.shtml *.js *.css *.php *.tpl *.asp *.pl *.plx *.ppl *.perl *.pm *.cgi *.smi *.smil
menu=Show Internet Files
button=wcmicons.dll,24
[em_ext_show_documents]
cmd=cd *.doc *.wpd *.dot *.rtf *.txt *.asc *.ans *.wri *.mcw *.wps *.docx *.docm *.mht *.mhtml *.xml *.dok
menu=Show Document Files
button=wcmicons.dll,24
[em_ext_show_spreadsheets]
cmd=cd *.xls *.xlt *.xlm *.xlc *.xlw *.xla *.xll *.xlb *.xlk *.xl5 *.wks *.wk1 *.wk3 *.wk4 *.wq1 *.slk *.dif *.csv *.prn *.txt *.odc *.udl *.dsn *.dbc *.iqy *.dqy *.rqy *.oqy *.cup *.uxdc *.mht *.mhtml *.xml *.pln
menu=Show Spreadsheet Files
button=wcmicons.dll,24
[em_ext_show_presentations]
cmd=cd *.ppt* *.pps* *.pot* *.ppa *.mht *.mhtml
menu=Show Presentation Files
button=wcmicons.dll,24
[em_ext_show_datafiles]
cmd=cd *.mdb *.mde *.mdx *.adp *.ade *.mdw *.dbf *.db *.xls *.csv *.tab *.asc *.txt *.hta *.asp *.odc *.udl *.dsn *.dbc *.iqy *.dqy *.rqy *.oqy *.cup *.uxdc *.mht *.mhtml *.xml
menu=Show Database Files
button=wcmicons.dll,24
[em_ext_show_programfiles]
cmd=cd *.exe *.com *.bat *.cmd *.scr *.cpl *.msc *.dll *.bin *.sys *.drv *.386 *.vxd *.ocx *.ax *.vbx *.tlb *.acm *.acv *.csp *.qtc *qts *qtx *qpx *.lrc
menu=Show Program Files
button=wcmicons.dll,12
[em_ext_hide_programfiles]
cmd=cd *.*|*.exe *.com *.bat *.cmd *.scr *.cpl *.msc *.dll *.bin *.sys *.drv *.386 *.vxd *.ocx *.ax *.vbx *.tlb *.acm *.acv *.csp *.qtc *qts *qtx *qpx *.lrc
menu=Hide Program Files
button=wcmicons.dll,12
Get: Extended Total Commander Menus >>> viewtopic.php?t=33740
[em_ext_show_images1]
cmd=cd *.8bps *.acr *.adi *.ani *.anm *.b3d *.bmp *.cam *.cdr *.cdt *.cel *.cgm *.clp *.cmx *.cr2 *.crw *.cur *.cut *.dcm *.dcx *.dds *.dib *.djvu *.drw *.dxf *.ecw *.emf *.eps *.flc *.fli *.fpx *.fsh *.g3 *.gem *.gif *.gsm
menu=Show Image Files (1 - g)
button=wcmicons.dll,24
[em_ext_show_images2]
cmd=cd *.hgl *.icl *.ico *.iff *.ima *.img *.iw44 *.j2k *.jbg *.jbig *.jfif *.jif *.jng *.jp2 *.jpc *.jpe *.jpeg *.jpg *.jpm *.kdc *.lbm *.lbmp *.ldf *.lwf *.mac *.macp *.mng *.msp *.nlm *.nng *.nol
menu=Show Image Files (h - o)
button=wcmicons.dll,24
[em_ext_show_images3]
cmd=cd *.pat *.pbm *.pcd *.pct *.pcx *.pgm *.pic *.pict *.plt *.png *.pnt *.pntg *.ppm *.ps *.psd *.psp *.ras *.raw *.rgb *.rla *.rle *.scr *.sff *.sfw *.sgi *.spr *.sun *.sw *.swf *.tga *.tif *.tiff *.wap *.wbm *.wbmp *.wmf *.xbm *.xcf *.xpm
menu=Show Image Files (p - x)
button=wcmicons.dll,24
[em_ext_show_images_web]
cmd=cd *.gif *.jpg *.jpeg *.jpe *.png *.bmp
menu=Show Image Files (web formats)
button=wcmicons.dll,24
[em_ext_show_music]
cmd=cd *.mid *.midi *.kar *.rmi *.smf
menu=Show Music Files
button=wcmicons.dll,24
[em_ext_show_sounds]
cmd=cd *.669 *.aac *.adts *.aif *.aifc *.amr *.as *.au *.bwf *.caf *.cda *.cdda *.dsm *.far *.gsm *.it *.m3u *.m4a *.m4p *.mod *.mp1 *.mp2 *.mp3 *.mtm *.qcp *.ra *.rm *.rmm *.rmp *.rmx *.s3m *.sd2 *.snd *.stm *.ult *.ulw *.voc *.wav *.wax *.wma *.xm
menu=Show Sound Files
button=wcmicons.dll,24
[em_ext_show_videos]
cmd=cd *.3g* *.amc *.as? *.avi *.cel *.dcr *.dif *.dir *.divx *.dv *.dxr *.flc *.fli *.flv *.ivf *.lsf *.lsx *.m1? *.m4v *.m75 *.mov *.mp2* *.mp4 *.mpa *.mpe *.mpeg *.mpg *.mps *.mpv* *.mqv *.qt *.ra *.rf *.rm* *.rsml *.rv *.sdv *.spl *.swf *.vfw *.wm* *.wvx
menu=Show Video Files
button=wcmicons.dll,24
[em_ext_show_archives]
cmd=cd *.zip *.rar *.r0? *.cab *.arj *.lha *.uc2 *.ace *.arc *.pak *.zoo *.sqz *.hyp *.wsz *.jar *tgz *.qz *.z *.hqx *.uu *.uue *.sit *.7z *.aes *.icl *.sqx *.chm *.bzip2 *.bz2 *.wim *.xz *.its
menu=Show Archive Files
button=wcmicons.dll,24
[em_ext_show_webfiles]
cmd=cd *.htm *.html *.shtml *.js *.css *.php *.tpl *.asp *.pl *.plx *.ppl *.perl *.pm *.cgi *.smi *.smil
menu=Show Internet Files
button=wcmicons.dll,24
[em_ext_show_documents]
cmd=cd *.doc *.wpd *.dot *.rtf *.txt *.asc *.ans *.wri *.mcw *.wps *.docx *.docm *.mht *.mhtml *.xml *.dok
menu=Show Document Files
button=wcmicons.dll,24
[em_ext_show_spreadsheets]
cmd=cd *.xls *.xlt *.xlm *.xlc *.xlw *.xla *.xll *.xlb *.xlk *.xl5 *.wks *.wk1 *.wk3 *.wk4 *.wq1 *.slk *.dif *.csv *.prn *.txt *.odc *.udl *.dsn *.dbc *.iqy *.dqy *.rqy *.oqy *.cup *.uxdc *.mht *.mhtml *.xml *.pln
menu=Show Spreadsheet Files
button=wcmicons.dll,24
[em_ext_show_presentations]
cmd=cd *.ppt* *.pps* *.pot* *.ppa *.mht *.mhtml
menu=Show Presentation Files
button=wcmicons.dll,24
[em_ext_show_datafiles]
cmd=cd *.mdb *.mde *.mdx *.adp *.ade *.mdw *.dbf *.db *.xls *.csv *.tab *.asc *.txt *.hta *.asp *.odc *.udl *.dsn *.dbc *.iqy *.dqy *.rqy *.oqy *.cup *.uxdc *.mht *.mhtml *.xml
menu=Show Database Files
button=wcmicons.dll,24
[em_ext_show_programfiles]
cmd=cd *.exe *.com *.bat *.cmd *.scr *.cpl *.msc *.dll *.bin *.sys *.drv *.386 *.vxd *.ocx *.ax *.vbx *.tlb *.acm *.acv *.csp *.qtc *qts *qtx *qpx *.lrc
menu=Show Program Files
button=wcmicons.dll,12
[em_ext_hide_programfiles]
cmd=cd *.*|*.exe *.com *.bat *.cmd *.scr *.cpl *.msc *.dll *.bin *.sys *.drv *.386 *.vxd *.ocx *.ax *.vbx *.tlb *.acm *.acv *.csp *.qtc *qts *qtx *qpx *.lrc
menu=Hide Program Files
button=wcmicons.dll,12
Get: Extended Total Commander Menus >>> viewtopic.php?t=33740
- - -
Save the search criteria:
- Launch the Search ("Find Files")
- Search for: *.flv *.avi *.mp4 *.mpeg
- Start the Search and Stop it just if you see it works.
- Empty the "Search in:" box.
- Switch to the [Load/Save] tab.
- Click [Save], save as 'videos' , or 'search_ForMyVideos' or 'mySavedSearch' or what you like.
- Close the "Find Files" dialog.
Store the Search as "vids" is shorter and quicker to type, but "search_ForMyVideos" better describes what that search will do.
The leading "search_" will help to gives an hint what that ini-entry for [Colors] and [Shortcuts] in the wincmd.ini is good for.
Use the search criteria:
- Now go to the top main folder for your search,
- Launch the Search ("Find Files").
- Check 'Select in subdirectories' [all(unlimited depth)].
- Select [Load/Save] and there 'search_ForMyVideos' and next [Load].
- Start the Search.
- Transfer the search result with bottom right [feed to listbox]-button to a normal list view (normal files and folders view).
* With [Backspace] you can leave the search result view.
* Or, with Shift-key while clicking [feed to listbox] you open the result in a new Tab.
Work with the search result:
- Now you can do all things you can do with TC, for example use F5 to Copy or F6 to Move.
- In the Copy dialog use [Options] to select 'Ask user' or 'Auto-rename'.
The saved search you can use in
- F5 Copy- or F6 Move- dialog as "Only files of this type: [ >search_ForMyVideos]".
- Menu "Show > Custom... Ctr+F12" as [>search_ForMyVideos] to filter the list view for that extensions.
- - - (note the ">search_ForMyVideos" hint in the address bar)
- - - (Ctrl+F10 = Show all files)
- a button as like:
Command: CD >search_ForMyVideos
Parameters:
Start path:
Icon file: wcmicons.dll
Tooltip: Filter for "my videos"
- - -
You can open the saved search settings from an button
Command: LOADSEARCH search_ForMyVideos
Parameters:
Start path:
Icon file: wcmicons.dll
Tooltip: your description here
You can open the saved search settings from an keyboard shortcut
Create the above own user defined command in usercmd.ini
and use the section name of that command in Options>Misc. for to assign an shortcut to.
https://ghisler.ch/board/viewtopic.php?p=344777#p344777
NOTE: that will open the search dialog, you can inspect the settings again and next click the [Start] button.
- - -
UPDATE 2020: Launch and immediately start to search
EXAMPLE:History.txt wrote:12.08.20 Added: Command LOADSEARCH <saved name> (e.g. on button):
Put one equal sign = in front of name to start searching immediately,
Command: LOADSEARCH=saved search name
two == to start and feed to listbox after search (32/64)
Command: LOADSEARCH==saved search name
Put one equal sign = in front of name to start searching immediately,
Command: LOADSEARCH=saved search name
Put two equal sign == to start and feed to listbox after search (32/64)
Command: LOADSEARCH==saved search name
- - -
Change Search default settings:
If you want that search options always as default,
create a User defined Command in usercmd.ini
usercmd.ini:
[em_MySearchSettings]
CMD=LOADSEARCH search_ForMyVideos
"em_" is mandatory.
"MySearchSettings" is the name you gave that command.
"[em_MySearchSettings]" both together is the ini section name and the name for the User defined Command.
"LOADSEARCH" is the TC internal command.
"search_ForMyVideos" is the name you gave on saving your search settings.
Now assign a keyboard shortcut
You can use the original shortcut to open the search or another key combination you want.
In future the search is open always with your wanted settings.
To assign an keyboard shortcut key (hotkey) to an command, utilize
Configuration > Options > Misc.
>> Redefine hotkeys (Keyboard remapping)
* at "()Hotkey" choose a free key combo as keyboard shortcut (the button with the big black triangle shows the already used)
--or--
* at "()Alias" enter a few digits or letters for to use in TCs command line (for example "help" for to execute cm_HelpIndex)
*
* For "Command:" click on the magnifying glass
* and choose the wanted command by double clicking on it.
(To filter type em_ or cm_ and maybe more letters or just an keyword like 'copy')
* Apply with the green check mark button!!!
* Close the options dialog with [OK]
* Click on OK
( more at >> https://ghisler.ch/board/viewtopic.php?p=344777#p344777 )
- - -
I want that same folder structures created:
I'd like to move all my videos inside MANY folders on my server to a new Video only folder. Keeping the same folder structure on the new drive too.
- You need to install a (WCX packer)Plugin , here "TreeCopyPlus" from SUKER. (http://ghisler.ch/board/viewtopic.php?t=5378)
* Download from https://totalcmd.net/plugring/TreeCopyPlus.html , and in TC double click on the download and let install.
- Then you can select the wanted files and utilize by Alt+F5 the Pack-dialog.
- There you can select your Plugin and maybe even use the [Configure...]-button on some.
- For "TreeCopyPlus" use [Configure...] and adjust the "Number of upper levels to exclude [3]"
EDIT:
/editMVV wrote: ↑2020-07-23, 12:27 UTC Try using CopyTree instead of TreeCopyPlus, much more intuitive.
http://totalcmd.net/plugring/CopyTree.html
- - -
Search result show only name and ext.
On default the search result doesn't show the size or date column,
but you can create user defined Custom columns to show any column you like and many more by using plugins.
See Wiki > https://www.ghisler.ch/wiki/index.php/Custom_columns
or forum post https://ghisler.ch/board/viewtopic.php?p=351792#p351792
- - -
How-to to use 'Ctrl+F' -keys to launch the Find Files-dialog:
Edit your wincmd.ini and add this under [Shortcuts]
WINCMD.INI
[Configuration]
..
..
[Shortcuts]
;Enable 'F2'-key to start inline-rename mode, additional to origin 'Shift+F6'
F2=cm_RenameOnly
;Enable 'Ctrl+F' to start find-files, additional to origin 'Alt+F7'
C+F=cm_SearchFor
;Use 'Ctrl+O' to launch DOS-Box in current path
C+o=cm_ExecuteDOS
;Ctrl+0 (zero) to execute user defined command to launch PoSh in current path
C+0=em_LaunchPowerShell
See "TOTALCMD.INC" text file for more, like cm_SearchStandalone=545;Search in separate process
See "Add keyboard shortcut Hotkey to em_ or cm_ commands" >>> https://ghisler.ch/board/viewtopic.php?t=71927 for more about this topic.
- - -
HTH?
Re: Search and copy Video files only
By using 'Everything' (link: see signature) in a search query with Total Commander, e.g. these search queries are possible,
field "Search for:" in TC... (TC Parameter --> ev:)
Search for Folders containing files with the following extensions:
Code: Select all
ev:child:*.3g2|child:*.3gp|child:*.3gp2|child:*.3gpp|child:*.amr|child:*.amv|child:*.asf|child:*.avi|child:*.bdmv|child:*.bik|child:*.d2v|child:*.divx|child:*.drc|child:*.dsa|child:*.dsm|child:*.dss|child:*.dsv|child:*.evo|child:*.f4v|child:*.flc|child:*.fli|child:*.flic|child:*.flv|child:*.hdmov|child:*.ifo|child:*.ivf|child:*.m1v|child:*.m2p|child:*.m2t|child:*.m2ts|child:*.m2v|child:*.m4b|child:*.m4p|child:*.m4v|child:*.mkv|child:*.mp2v|child:*.mp4|child:*.mp4v|child:*.mpe|child:*.mpeg|child:*.mpg|child:*.mpls|child:*.mpv2|child:*.mpv4|child:*.mov|child:*.mts|child:*.ogm|child:*.ogv|child:*.pss|child:*.pva|child:*.qt|child:*.ram|child:*.ratdvd|child:*.rm|child:*.rmm|child:*.rmvb|child:*.roq|child:*.rpm|child:*.smil|child:*.smk|child:*.swf|child:*.tp|child:*.tpr|child:*.ts|child:*.vob|child:*.vp6|child:*.webm|child:*.wm|child:*.wmp|child:*.wmv
child:<filename> Search for folders that contain a child file or folder with a matching filename.
Folder Indexing
Search for Files with the following extensions:
Code: Select all
ev:ext:3g2;3gp;3gp2;3gpp;amr;amv;asf;avi;bdmv;bik;d2v;divx;drc;dsa;dsm;dss;dsv;evo;f4v;flc;fli;flic;flv;hdmov;ifo;ivf;m1v;m2p;m2t;m2ts;m2v;m4b;m4p;m4v;mkv;mp2v;mp4;mp4v;mpe;mpeg;mpg;mpls;mpv2;mpv4;mov;mts;ogm;ogv;pss;pva;qt;ram;ratdvd;rm;rmm;rmvb;roq;rpm;smil;smk;swf;tp;tpr;ts;vob;vp6;webm;wm;wmp;wmv
Limit the search to drives (folder exclusions).
Example1 - Limit search to Network shares or mapped network drives
Folder indexing for Network shares or mapped network drives must be defined in 'Everything', Menu Tools -> Options... -> Indexes: Folders(!)
Code: Select all
ev:\\Your-pc\Videos\ <child:*.3g2|child:*.3gp|child:*.3gp2|child:*.3gpp|child:*.amr|child:*.amv|child:*.asf|child:*.avi|child:*.bdmv|child:*.bik|child:*.d2v|child:*.divx|child:*.drc|child:*.dsa|child:*.dsm|child:*.dss|child:*.dsv|child:*.evo|child:*.f4v|child:*.flc|child:*.fli|child:*.flic|child:*.flv|child:*.hdmov|child:*.ifo|child:*.ivf|child:*.m1v|child:*.m2p|child:*.m2t|child:*.m2ts|child:*.m2v|child:*.m4b|child:*.m4p|child:*.m4v|child:*.mkv|child:*.mp2v|child:*.mp4|child:*.mp4v|child:*.mpe|child:*.mpeg|child:*.mpg|child:*.mpls|child:*.mpv2|child:*.mpv4|child:*.mov|child:*.mts|child:*.ogm|child:*.ogv|child:*.pss|child:*.pva|child:*.qt|child:*.ram|child:*.ratdvd|child:*.rm|child:*.rmm|child:*.rmvb|child:*.roq|child:*.rpm|child:*.smil|child:*.smk|child:*.swf|child:*.tp|child:*.tpr|child:*.ts|child:*.vob|child:*.vp6|child:*.webm|child:*.wm|child:*.wmp|child:*.wmv>
Example2 - Exclude folders on drive C: from the search
Code: Select all
ev:!<C:> <child:*.3g2|child:*.3gp|child:*.3gp2|child:*.3gpp|child:*.amr|child:*.amv|child:*.asf|child:*.avi|child:*.bdmv|child:*.bik|child:*.d2v|child:*.divx|child:*.drc|child:*.dsa|child:*.dsm|child:*.dss|child:*.dsv|child:*.evo|child:*.f4v|child:*.flc|child:*.fli|child:*.flic|child:*.flv|child:*.hdmov|child:*.ifo|child:*.ivf|child:*.m1v|child:*.m2p|child:*.m2t|child:*.m2ts|child:*.m2v|child:*.m4b|child:*.m4p|child:*.m4v|child:*.mkv|child:*.mp2v|child:*.mp4|child:*.mp4v|child:*.mpe|child:*.mpeg|child:*.mpg|child:*.mpls|child:*.mpv2|child:*.mpv4|child:*.mov|child:*.mts|child:*.ogm|child:*.ogv|child:*.pss|child:*.pva|child:*.qt|child:*.ram|child:*.ratdvd|child:*.rm|child:*.rmm|child:*.rmvb|child:*.roq|child:*.rpm|child:*.smil|child:*.smk|child:*.swf|child:*.tp|child:*.tpr|child:*.ts|child:*.vob|child:*.vp6|child:*.webm|child:*.wm|child:*.wmp|child:*.wmv>
Example3 - Exclude folders on drive C:, I:, J: from the search
Code: Select all
ev:!<C:|I:|J:> <child:*.3g2|child:*.3gp|child:*.3gp2|child:*.3gpp|child:*.amr|child:*.amv|child:*.asf|child:*.avi|child:*.bdmv|child:*.bik|child:*.d2v|child:*.divx|child:*.drc|child:*.dsa|child:*.dsm|child:*.dss|child:*.dsv|child:*.evo|child:*.f4v|child:*.flc|child:*.fli|child:*.flic|child:*.flv|child:*.hdmov|child:*.ifo|child:*.ivf|child:*.m1v|child:*.m2p|child:*.m2t|child:*.m2ts|child:*.m2v|child:*.m4b|child:*.m4p|child:*.m4v|child:*.mkv|child:*.mp2v|child:*.mp4|child:*.mp4v|child:*.mpe|child:*.mpeg|child:*.mpg|child:*.mpls|child:*.mpv2|child:*.mpv4|child:*.mov|child:*.mts|child:*.ogm|child:*.ogv|child:*.pss|child:*.pva|child:*.qt|child:*.ram|child:*.ratdvd|child:*.rm|child:*.rmm|child:*.rmvb|child:*.roq|child:*.rpm|child:*.smil|child:*.smk|child:*.swf|child:*.tp|child:*.tpr|child:*.ts|child:*.vob|child:*.vp6|child:*.webm|child:*.wm|child:*.wmp|child:*.wmv>
For a search query directly in 'Everything' there is the filter "Videos" for video-files.
Windows 10 Pro (x64) Version 2004 (OS build 19041.388)
TC 9.51 x64/x86 | 'Everything'-Version 1.4.1.986 (x64)
☑ 'Everything' | Search queries: TC <=> 'Everything' | Installing Everything
Re: Search and copy Video files only
Out of interest I have successfully tested this as follows - short summary (example):
- Create folder "D:\Video\" and open it in TC in the right panel
- Go to the left panel of TC --> press Tab key
- Search in separate process... Alt+Shift+F7
- Search for: ev:!<C:|I:|J:> <ext:avi;wm> --> [it is recommended to use first only a few file extensions with a small folder structure!]
Search for: ev:\\Your-pc\ <ext:avi;wm> <-- 2fnszlft: Your search query could be something like this <--
(Field "Search in:" is ignored!) - ☑ 'Everything' ... press button "Start search" in TC, then button "Feed to listbox"
- press Ctrl+A to mark all files
- cm_PackFiles [press button or fill in this text in the command line of TC and press <ENTER>]
- Now select the packer: "TreeCopyPlus"
- ☑ Also pack path names (only recursed)
- ☑ Recursively pack subdirectories
- press button "Configure..." ... Options --> Number of upper levels to exclude: 1 (see: ReadmeEng.txt), press OK
- OK starts copying...
Re: Search and copy Video files only
Try using CopyTree instead of TreeCopyPlus, much more intuitive. ![Wink :wink:](./images/smilies/icon_wink.gif)
But copying folder with filter is much easier anyway.
![Wink :wink:](./images/smilies/icon_wink.gif)
But copying folder with filter is much easier anyway.
Re: Search and copy Video files only
Thanks for the advice.MVV wrote:Try using CopyTree instead of TreeCopyPlus, much more intuitive.
In a short test I was able to transfer the folder structure, but afterwards there was only 1 file in the folder,
instead of several files. I'll have to run more tests...
To do that you will need to know the folders where the video files are located.MVV wrote:But copying folder with filter is much easier anyway.
For this purpose I only know a search query in 'Everything' at the moment (as shown above: child:).
Re: Search and copy Video files only
Why? See my first post in this thread. TC will copy any file matching the filter/search. Yes, it's a bit of work to define all video file types in a search, but once that's done it's just fire and forget. Probably very few people have more than half a dozen video file types in a structure. For me it's MP4, MKV, AVI, FLV and some old WMVs and RMs, although I don't have anything to do with the mobile formats.
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
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Search and copy Video files only
I'm sorry, I don't understand this without step-by-step instructions
(starting with how I get to the folders <which contains video files> I want to copy later - inclusive folder structure -).
But in principle it is not that important, because I have found 1 solution, if I ever need it.
(starting with how I get to the folders <which contains video files> I want to copy later - inclusive folder structure -).
But in principle it is not that important, because I have found 1 solution, if I ever need it.
Re: Search and copy Video files only
Well, the really poor man's solution could be:
Regards
Dalai
- Select any number of directories you want to copy and press F5
- Enter *.mp4 *.mkv *.avi *.flv into the field "Only files of this type"
- Confirm/start the copy
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
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Search and copy Video files only
2Dalai
Thank you!
Well, I am the really poor man, but now I got it
My filter didn't work --> ev:!<C:|I:|J:> <wfn:ext:wm>
With a saved search/filter *.wm drive D:\ then I was successful.
But the method "F5 Copy folders with filter" is absolutely not the solution for me in such a case (directory structure),
due to possible empty folders, duplicate folders and files!
I know how to get the folders under point 1.
I will now go back to my problem with CopyTree and hope that I find the solution.
EDIT: Solved! (Wrong value was marked)
Thanks again!
Thank you!
Well, I am the really poor man, but now I got it
![Smile :)](./images/smilies/icon_smile.gif)
My filter didn't work --> ev:!<C:|I:|J:> <wfn:ext:wm>
With a saved search/filter *.wm drive D:\ then I was successful.
But the method "F5 Copy folders with filter" is absolutely not the solution for me in such a case (directory structure),
due to possible empty folders, duplicate folders and files!
I know how to get the folders under point 1.
![Wink :wink:](./images/smilies/icon_wink.gif)
I will now go back to my problem with CopyTree and hope that I find the solution.
EDIT: Solved! (Wrong value was marked)
Thanks again!
Re: Search and copy Video files only
To better represent this situation I have uploaded a picture here.tuska wrote:But the method "F5 Copy folders with filter" is absolutely not the solution for me in such a case (directory structure),
due to possible empty folders, duplicate folders and files!
Example:
1 file extension (.wm)
8 files
4 folders
Low nesting depth
In my opinion, the use of "CopyTree" [or "TreeCopyPlus"] would be highly recommended for this case.
The use of 'Everything' is not absolutely necessary, because in Total Commander you can make a search query
by file extensions, for example as follows - field "Search for":
Code: Select all
*.3g2;*.3gp;*.3gp2;*.3gpp;*.amr;*.amv;*.asf;*.avi;*.bdmv;*.bik;*.d2v;*.divx;*.drc;*.dsa;*.dsm;*.dss;*.dsv;*.evo;*.f4v;*.flc;*.fli;*.flic;*.flv;*.hdmov;*.ifo;*.ivf;*.m1v;*.m2p;*.m2t;*.m2ts;*.m2v;*.m4b;*.m4p;*.m4v;*.mkv;*.mp2v;*.mp4;*.mp4v;*.mpe;*.mpeg;*.mpg;*.mpls;*.mpv2;*.mpv4;*.mov;*.mts;*.ogm;*.ogv;*.pss;*.pva;*.qt;*.ram;*.ratdvd;*.rm;*.rmm;*.rmvb;*.roq;*.rpm;*.smil;*.smk;*.swf;*.tp;*.tpr;*.ts;*.vob;*.vp6;*.webm;*.wm;*.wmp;*.wmv
Code: Select all
*.3g2 *.3gp *.3gp2 *.3gpp *.amr *.amv *.asf *.avi *.bdmv *.bik *.d2v *.divx *.drc *.dsa *.dsm *.dss *.dsv *.evo *.f4v *.flc *.fli *.flic *.flv *.hdmov *.ifo *.ivf *.m1v *.m2p *.m2t *.m2ts *.m2v *.m4b *.m4p *.m4v *.mkv *.mp2v *.mp4 *.mp4v *.mpe *.mpeg *.mpg *.mpls *.mpv2 *.mpv4 *.mov *.mts *.ogm *.ogv *.pss *.pva *.qt *.ram *.ratdvd *.rm *.rmm *.rmvb *.roq *.rpm *.smil *.smk *.swf *.tp *.tpr *.ts *.vob *.vp6 *.webm *.wm *.wmp *.wmv