Button for filtering files with a specific file extension

Hi there,

I want to make a button that can do the following:

Check a folder if there are files with a specific file-extensions, for example *.mp3 and *.cue. If the script finds files, simply list all of them.

I think it's basically an automated search-script with multiple queries. It would help me to handle files and it would make my life easier.

Is it possible to program such a button?

Regards

Try following code:

set FLATVIEW=MixedNoFolders SHOWFILTERFILENAME=(*.mp3|*.cue)

This works only for the files & folders below the one, you´re currently using.

Do you want it to be recursive or only show things directly below the current folder?

Wow, this seem to work, thank you!

Can you explain what you mean with "This works only for the files & folders below the one, you´re currently using."?

If I select a drive and hit the button, it lists every specific file (I think)...

In every folder.

[quote="hKing"]Wow, this seem to work, thank you!

Can you explain what you mean with "This works only for the files & folders below the one, you´re currently using."?

If I select a drive and hit the button, it lists every specific file (I think)...[/quote]

What i meant, that it´s not like a global search (all drives). But if you´re in the root of your musik drive (for instance),
it should work fine.

Well ok, now I get it :slight_smile:

I think it works just fine when I am (for example) on a drive.

The button is really awesome, already saved me some time!

Can someone tell me how I have to alter the

set FLATVIEW=MixedNoFolders SHOWFILTERFILENAME=(*.mp3|*.cue)

only works within the active folder?

From other messages I see you've worked this out already, but for anyone else following the thread and looking for the same information:

Take out the FLATVIEW=MixedNoFolders part and it won't switch you into Flat View anymore. Leave in the SHOWFILTERFILENAME=(.mp3|.cue) part and it will still set that filter, on the current folder.

You also might add HIDEFILTERFOLDERS, if you want only the files left.