Page 2 of 2

Re: Search with file name lists

Posted: 30 Nov 2025 17:21
by eil
Leo50 wrote: 23 Nov 2025 21:37 Hello

Is there a way to search for files in xyplorer via file lists? For example, there are 50 file names in the list and the corresponding files
should then be searched for and listed in order to move or delete them.
Is something like this possible with xyplorer or with another tool.
I hope I explained it clearly.

I would be very grateful for any help or tips.
Just imagining how i'd do that with scripting:
- put file names in txt
- load it in variable and run X number of foreach separate searches
- if found put them in var and at the end dumb all found in txt/paper folder
= that would allow to do operations and having them shown all together, no matter how different their location is.

Re: Search with file name lists

Posted: 30 Nov 2025 19:25
by yuyu
Convert your list to a string by replacing \r\n to ;.

Re: Search with file name lists

Posted: 01 Dec 2025 12:12
by admin
Just load the list as a paper folder.

Re: Search with file name lists

Posted: 01 Dec 2025 15:31
by Leo50
The list will always change different file names.

Re: Search with file name lists

Posted: 01 Dec 2025 16:21
by admin
... and the corresponding files should then be searched for and listed in order to move or delete them.
Do your moving and deleting, then load the next list.

Re: Search with file name lists

Posted: 01 Dec 2025 17:03
by highend
E.g. if you write your lists (.txt files) in this folder:
{xyplorer data path}\Paper

this would make it a bit easier...

Code: Select all

    $srcPath  = <xypaper>;
    $srcFiles = listfolder($srcPath, "*.txt", 1, <crlf>);
    $srcFile  = inputselect("Select file", $srcFiles, <crlf>, 1+32+2048+8192+16384, , 400, 600);
    paperfolder("Current", readfile($srcFile));

Re: Search with file name lists

Posted: 01 Dec 2025 20:22
by Leo50
admin wrote: 01 Dec 2025 16:21
... und die entsprechenden Dateien sollten dann gesucht und aufgelistet werden, um sie zu verschieben oder zu löschen.
Führen Sie das Verschieben und Löschen durch und laden Sie dann die nächste Liste.
Yes, that's what I thought

Re: Search with file name lists

Posted: 01 Dec 2025 20:34
by Leo50
highend wrote: 01 Dec 2025 17:03Wenn Sie beispielsweise Ihre Listen (.txt-Dateien) in diesen Ordner schreiben:{xyplorer data path}\Paper, würde dies es etwas einfacher machen...

Code: Select all

 $srcPath = <xypaper>; $srcFiles = listfolder($srcPath, "*.txt", 1, <crlf>); $srcFile = inputselect("Datei auswählen", $srcFiles, <crlf>, 1+32+2048+8192+16384, , 400, 600); paperfolder("Aktuell", readfile($srcFile));
How exactly do I use the code?

Re: Search with file name lists

Posted: 01 Dec 2025 21:30
by highend
E.g. add a toolbar button ("User button #...") and paste the script for the on left click event (press the Edit... button on the right side of it in the config window for that button)