TFind and virtual Panel

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
nsp
Power Member
Power Member
Posts: 1913
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

TFind and virtual Panel

Post by *nsp »

Just in case some of you are interested, I use a LOT Virtual Panel as an intermediate layer between some Batch/Script.... and TC.
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"
		}
	}
}
B) a way to askParam if you need i use personally mParam
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=
D) a way to execute easily from Virtual Panel this may be \vputils\do Vitual file pointing to docmd.lnk (start reduced) attached to docmd.cmd Script

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
F) tccp (Total Commander Command Poster Written by Oleg Bondar ) just in case you do not find it, you can get it bundled with mparam.
I know this is not optimum solution but you can use it as starting point
Post Reply