One of the usage i do is to have a TFind Query Virtual Folder it needs some tooling..
(It works with new tfind version !)
A) A >ClearFolder VirtualP anel Script
Code: Select all
<silent
<ifexist "%1" {
<cd "%1"
<for /d %%f . * {
<ifcond { !script @ %%~f
} {
<del /rfd "%%~f"
}
}
}
C) A Batch to execute TFind: tf_.cmd
Code: Select all
@echo off
@set _search=
@set _disks=c
@for /F "delims=" %%s in ( 'mparam "Search pattern" "Enter what to search ?" _search' ) do %%s
if "#%_search%#" == "##" goto END
@for /F "delims=" %%s in ( 'mparam "Where" "Enter NTFS Drives" _disks' ) do %%s
del "%temp%\tfind.lst"
@tfind.exe "%_search%" %_disks% >"%temp%\tfind.lst"
:END
@set _search=
@set _disks=
Code: Select all
%*
E) A Virtual Panel Script to Call the search: ">Search"
Code: Select all
<silent
<exec /w \vputils\>ClearFolder
<exec /w \vputils\do tf_
<put /la . %temp%\tfind.lst
<flush
<exec \vputils\do "%%commander_path%%\tools\tccp" -s 540
I know this is not optimum solution but you can use it as starting point