Quickly Verify all ...
 
Notifications
Clear all

Quickly Verify all E01 files are present in folder?

3 Posts
3 Users
0 Reactions
975 Views
(@mrmacca)
Eminent Member
Joined: 8 years ago
Posts: 20
Topic starter  

Is there a piece of software that will quickly confirm that all the files in an E01 sequence are present in a folder?

Our Tape backup system has corrupted and in some instances it has deleted a random E01. I don't want it to spend 2 hours verifying the image that I have restored.

So for example an Image has 100 E01 files originally, but for whatever reason E18 has disappeared. I want a quick way for me to run something that within a few seconds it can say "E18 is missing" and so on.

Kind regards


   
Quote
PaulSanderson
(@paulsanderson)
Honorable Member
Joined: 19 years ago
Posts: 651
 

Just count the exx files in the folder - if there should be 100 and there are less than this, then one or more are misssing.


   
ReplyQuote
jaclaz
(@jaclaz)
Illustrious Member
Joined: 18 years ago
Posts: 5133
 

To generalize the question (in order to narrow it 😯 ).

You have an unknown number of files in a folder with the same name but extensions in the E01 to E99 range?

A FOR loop in *any* language can possibly do, something *like* (batch)

FOR /L %%A IN (1,1,99) DO (
SET extension=0%%A
SET extension=E!extension~-2,2!
IF EXIST filename.!extension! (
ECHO FILE filename.!extension! OK
SET Last=filename.!extension!
) ELSE (
ECHO FILE filename.!extension! is missing
)
)
ECHO LAST found is %Last%

jaclaz


   
ReplyQuote
Share: