You are not logged in.
Pages: 1
I have both .PNG & .TIFF image files in a number of folders and only want to delete the .TIFF files.
Please advise how to do this.
Thanks
Offline
Hi drslim
I have both .PNG & .TIFF image files in a number of folders and only want to delete the .TIFF files.
Please advise how to do this.Thanks
I on my own would like to suggests you to use a file manager for such tasks,
as that is not directly related to the scope of a Renamer and there are better places to discuses that .
For example (Exchange '*.txt' by '*.TIFF' at that command):
https://stackoverflow.com/questions/190 … subfolders
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
Thanks. I looked for some software for this task but didnt find anything suitable to date.
Offline
As Stefan has already suggested, ReNamer is designed for renaming files, not deleting them.
An alternative approach is to use Pascal Script rule to rename or move such TIFF files to a different location, which can then be easily deleted via any file manager.
The script below will inspect files with .TIFF or .TIF extensions. If a file has a copy with .PNG extension, then the file will be prefixed with "__DELETE__" text, just to demonstrate this alternative approach.
var
FileExt: WideString;
FileAlternative: WideString;
begin
FileExt := WideUpperCase(WideExtractFileExt(FilePath));
if (FileExt = '.TIFF') or (FileExt = '.TIF') then
begin
FileAlternative := WideChangeFileExt(FilePath, '.PNG');
if WideFileExists(FileAlternative) then
FileName := '__DELETE__' + FileName;
end;
end.
Offline
Pages: 1