How to filter full paths via formatlist()?
Posted: 29 Sep 2012 12:29
E.g.:
In the address bar:
Works fine, the window is empty.
If only folders that don't contain "D:\Temp\test\test1\test2" should be returned:
Works fine in this case, but probably returns wrong folders when more than one folder with "test2" in it exists (e.g. on different drives).
But what if full paths should be filtered?
Doesn't work. How to do it right?
In the address bar:
Code: Select all
$a="D:\Temp\test\test1|D:\Temp\test\test1\test2|D:\Temp\test\test1\test2\test3";text formatlist($a, "f", "|", "!D:\*");If only folders that don't contain "D:\Temp\test\test1\test2" should be returned:
Code: Select all
$a="D:\Temp\test\test1|D:\Temp\test\test1\test2|D:\Temp\test\test1\test2\test3";text formatlist($a, "f", "|", "!*test2*");But what if full paths should be filtered?
Code: Select all
$a="D:\Temp\test\test1|D:\Temp\test\test1\test2|D:\Temp\test\test1\test2\test3";text formatlist($a, "f", "|", "!D:\Temp\test\test1\test2*");