PDF Explorer > Ideas/Suggestions
Current Folder Column
(1/1)
RW:
Could a column be created that just shows the "current folder" name of the current file, not all the other folders that this current folder is nested under.
And this column would need to be exportable to a csv file also.
I don’t want the column that has all this c:\pictures\2015\summer\
I just want the column to show only the last folder called summer\ or summer
RTT:
As with the column part of this example, set a custom field, with a custom grid layout to show it, and use the Edit Info Fields batch tool with this GetParentFolderName named script.
--- Code: ---function GetParentFolderName() {
var path = BatchFile.Filename.substring(0,BatchFile.Filename.lastIndexOf('\\'));
//remove parent folders
path = path.substring(path.lastIndexOf('\\')+1);
return path;
}
--- End code ---
RTT:
Or just use a custom grid layout dynamically calculated column, with this code as the eval expression:
--- Code: ---begin
var 'i','path' end;
$path:=leftstr(FP,length(FP)-1);
$i:=pos('\',reversestr($path));
return(rightstr($path,$i-1));
end
--- End code ---
Navigation
[0] Message Index
Go to full version