Quickly Verify all ...
 
Notifications
Clear all

Quickly Verify all E01 files are present in folder?

3 Posts
3 Users
0 Likes
471 Views
(@mrmacca)
Posts: 20
Eminent Member
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

 
Posted : 19/06/2018 3:10 pm
PaulSanderson
(@paulsanderson)
Posts: 651
Honorable Member
 

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.

 
Posted : 19/06/2018 4:07 pm
jaclaz
(@jaclaz)
Posts: 5133
Illustrious Member
 

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

 
Posted : 19/06/2018 6:02 pm
Share: