If a folder name contains .(DOT) FORMATLIST with filter "!*.*" won't return filename without extension
This is working :
Code: Select all
text formatlist("D:\test\data1\filename1|D:\test\data1\filename2.ext", "f", "|", "!*.*")This don't :
Code: Select all
text formatlist("D:\test\data.1\filename1|D:\test\data.1\filename2.ext", "f", "|", "!*.*")The only way i found to achieve that without FORMATLIST is :
Code: Select all
$list = "";
foreach($item, "D:\test\data.1\filename1|D:\test\data.1\filename2.ext|D:\test\data.1\filename3.ext", "|") {
if getpathcomponent($item, "ext") == "" {
$list = $list . $item . "|";
}
}
$list = trim($list, "|", "r");
text $list;Is there any other way to only get file without extension in a script ?
Thank you
XYplorer Beta Club