You are not logged in.
Pages: 1
HI,
I am using renamer version 6.4.
I want to rename some old photos from the hard disk which i have organized long back.
for example, C:\Paris_Visit\Day1\Pic1
rename "Pic1" to "Paris_Visit#Day1#Pic1"
Please let me know if it is possible using this tool.
Cheers.
Offline
Yes, it is possible with a PascalScript rule:
var
ParentDir1, ParentDir2: WideString;
begin
ParentDir1 := WideExtractFileDir(FilePath);
ParentDir2 := WideExtractFileDir(ParentDir1);
ParentDir1 := WideExtractFileName(ParentDir1);
ParentDir2 := WideExtractFileName(ParentDir2);
FileName := ParentDir2 + '#' + ParentDir1 + '#' + FileName;
end.
There is also :File_FolderName: meta tag, but it gives access only to the first level parent folder name.
Offline
Pages: 1