You are here: PSPad forum > English discussion forum > Re: How to remove duplicates with part of name duplicated
Posted by: hannaconner | Date: 2025-07-08 06:45 | IP: IP Logged
I list my files with a file handler and then export it to a text file which I open in PSPAD.
That gives me a file listing all the files across all my hard drives, my total computer.
Now pspad will remove all the duplicate lines.
That's fine for all duplicates on one drive because the whole filename/path is the same.
But the same file on a different drive is not seen as a duplicate because the filename begins with a different drive letter.
Posted by: pspad | Date: 2025-07-08 07:00 | IP: IP Logged
PPpad works with lines of the text, not with a file names.
It doesn't split path to drive + path + filename and evaluate it.
You can remove drive letter or path before sorting and removing duplicities
Or you can write PSpad script extension, what will take all lines in the file, split it into file path parts, sort it and remove duplicities as you need
Editor PSPad - freeware editor, © 2001 - 2025 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR