OS/2, eCS & ArcaOS - Technical > Utilities

Find missing files

(1/2) > >>

Per E. Johannessen:
Hi,

I have some directories with lots of pdf-files like this:
10001.pdf
10002.pdf
10003.pdf
10005.pdf
The files are supposed to be consecutively numbered and this case only four files in the directory and it's easy to see that 10004.pdf is missing.
However, in a directory with thousands of files it's hard to manually find the missing ones.

Does anyone know of a program that takes "start file number ie. 10001.pdf" and "end file number ie. 10500.pdf" as
parameters and lists the missing ones?

David Graser:
Unfortunately, it appears that Seek and Scan does not recognize wildcards.

However, using using SearchPlus by Keith Merrington, I had no problem finding a file(s) named as such with the following parameters.

1000*.pdf



Andreas Schnellbacher:

--- Quote from: Per E. Johannessen on April 18, 2021, 07:04:23 pm ---Does anyone know of a program that takes "start file number ie. 10001.pdf" and "end file number ie. 10500.pdf" as
parameters and lists the missing ones?

--- End quote ---
Most likely you have to script that. Not too difficult. May even possible with a non-REXX and non-4OS2 script.

Per E. Johannessen:
Thanks guys,

David;
I need to find out which files are missing so I think the parameter 1000*.pdf would simply list files numbered
10001.pdf up to 10009.pdf and not tell me that ie. 10004.pdf is missing

Andreas:
I believe REXX can do it, (but can I do it? ;) )

Andreas Schnellbacher:
OK, I'll try that. I guess that might be useful, it works on one dir only:

Parameters: <Dir> <StartName> <EndName> <LogFile>

Navigation

[0] Message Index

[#] Next page

Go to full version