Not= To Search

English support forum

Moderators: Hacker, petermad, Stefan2, white

skullmurphy
Junior Member
Junior Member
Posts: 5
Joined: 2010-10-07, 04:49 UTC

Not= To Search

Post by *skullmurphy »

Hi there,

Very new here...
I currently am using a jukebox program where i use it to play on a big screen and use a touchscreen to select mp3s from particular artists and navigate by touching the touchscreen on graphical buttons of album covers which have in each separate folder a file called cover.jpg which is the button file graphic.

Now most are ok at the moment but some are missing the particular cover.jpg file for some artists thus giving a blank button and i was wondering if total commander can search for files which are NOT equal to a certain string name.

For example to give me an answer from

List the folders from my search that dont contain a file called cover.jpg

Any help would be appreciated

Thanks skull :lol: :lol: :lol:
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Try this script. As I suppose, only thing you should do is to change "contains" to "!contains".
Single user license #329241
PowerPro scripts for Total Commander
skullmurphy
Junior Member
Junior Member
Posts: 5
Joined: 2010-10-07, 04:49 UTC

Post by *skullmurphy »

Thanks Vochomurka

Thanks for your help...

Understand I suppose the concept of scripts but was wondering the following.

1. Do i need Powerpro scripts for Total Commander installed and running

2. How do I save the script to a file for use as a plugin for Total Commander.

(Do i copy and paste the text shown in your script link or what ????

Sorry to be dum

skull
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Yes it can. WIthout a script.

You will need MGP's FileMask, 11kb (Cool...looks like it's been updated in the last couple months)

Step#1 Install the FileMask plugin.
Step#2 Edit the FileMask.ini file and add (under)
[DirMask]
cover=cover.jpg
  1. Now switch to your folders that contain your MP3 Folders. In my case, that is: X:\Audio\_Artist_
  2. Do a normal Search, leave the search for field blank.
  3. Search in subdirectories: all (Unlimited depth) --- {Or whatever depth you like}.
  4. Click on the [Plugins] Tab, choose FileMask from the plugin-list (make sure search in plugins is checked).
E.G.

Code: Select all

FileMask↓	Dirmask↓	=↓	0	cover↓
  1. Do your search.
  2. Feed to ListBox.
  3. Do search again (from the Results Tab)
  4. Search in subdirectories: current dir only (important)
  5. Make sure FileMask settings are enabled, and [x]Search in plugins is checked.
  6. Search.
  7. Feed to Listbox.
The only directories listed in the 2nd and final ListBox will be the ones that don't have a cover.jpg file.

It sounds a little involved I suppose. But many things with TC aren't exactly streamlined, but they get the job done :-)
It's really just a couple of steps once yer familiar with the Search Dialog.

Note: You might have to unload/reload plugins after editting the FileMask.ini - or restart TC.

Apparently, I'm missing a couple covers
X:\A_AUDIO_\_ARTIST_\Apocalyptica\2006_Amplified CD2\
X:\A_AUDIO_\_ARTIST_\Metallica\1991_Metallica\
X:\A_AUDIO_\_ARTIST_\Metallica\1998_Garage Inc. [CD1]\
X:\A_AUDIO_\_ARTIST_\Metallica\1998_Garage Inc. [CD2]\
X:\A_AUDIO_\_ARTIST_\Tori Amos\1999_To Venus And Back - Venus Live, Still Orbiting\
X:\A_AUDIO_\_ARTIST_\Warlock ( Doro )\2002_Fight\Doro - Fight Limited Edition Digipak\
X:\A_AUDIO_\_ARTIST_\Warlock ( Doro )\2004_Classic Diamonds\Videoclip\
X:\A_AUDIO_\_ARTIST_\Warlock ( Doro )\2009_Fear No Evil\
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Do i need Powerpro scripts for Total Commander installed and running
You surely need to install PowerPro. Also, you may need some plugins. For the DirColor script to work, you need only the ini plugin, others are installed automatically at the PowerPro installation.
As to the scripts, you can copy them or not.
All the information you have to get is here. Questions you would ask are: Where to get the ini plugin, how to execute a script, etc.
How do I save the script to a file for use as a plugin for Total Commander
No way, sorry.
Do i copy and paste the text shown in your script link or what ????
You can both copy&paste text form web-page, or download a script directly.
Good luck.
Single user license #329241
PowerPro scripts for Total Commander
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

@Vochomurka, I don't see how that PPro script will help if you have your MP3 files setup like:
Music\Artist\Album\1.mp3

You can open up the Music folder and the script will be able to colorize the artist names -- of which none of the artist names will contain a cover.jpg, since they are all one more level down inside the Album folders. So then you would have to open each Artist folder manually to see if any of the Album folders are colored?
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

My script colorizes folders rather than files.
In fact, under the requested conditions no colorization is needed at all. My script just adds some keyword (specified by user) to the folder's comment. Then we can search with "[tc.comment] !contains keyword".
I've just tested it.
Single user license #329241
PowerPro scripts for Total Commander
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

I understand that it colorizes folders.
But there are no "cover.jpg" files within the Parent-Folder "Some Artist", they are all contained another level down.
===========
Some Artist
| 2010_An Album
| 2009_An Album
===========

So is your script searching multiple levels down to add a comment to the grandparent folder?
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Now I get the point.
No, it is not, sorry. I've just never needed searching multiple levels down.
Single user license #329241
PowerPro scripts for Total Commander
skullmurphy
Junior Member
Junior Member
Posts: 5
Joined: 2010-10-07, 04:49 UTC

Post by *skullmurphy »

Vochomurka & Balderstrom you are both lifesavers.

This has saved me a heap of time. thanks again

skull
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Surely. I learned something myself ;)
What covers I'm missing, and how to do a search for NOT a file. I'd used FileMask in the past a couple times but always in the TabStop (custom column) for counting files...
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
skullmurphy
Junior Member
Junior Member
Posts: 5
Joined: 2010-10-07, 04:49 UTC

Post by *skullmurphy »

Maybe you can help with this...

Is there a setting to enable file and folder multiple selections by dragging a mouse cursor ???

skull
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Shift + Up|Down Arrow.
Insert | Space | Ctrl + Space

Or go into the Settings: Config | Operation
Mouse Selection Mode:
(x) Use Right Mouse Button

RightClick on an Unselected file, (hold down); move mouse.
RightClick on a Selected file (hold down); move mouse.
skullmurphy
Junior Member
Junior Member
Posts: 5
Joined: 2010-10-07, 04:49 UTC

Post by *skullmurphy »

Balderstrom wrote:Shift + Up|Down Arrow.
Insert | Space | Ctrl + Space

Or go into the Settings: Config | Operation
Mouse Selection Mode:
(x) Use Right Mouse Button

RightClick on an Unselected file, (hold down); move mouse.
RightClick on a Selected file (hold down); move mouse.
It worked thanks again

skull
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

2moderators
The post above is a spam. Please remove!
Single user license #329241
PowerPro scripts for Total Commander
Post Reply