Solved

test File

Posted on 2006-07-21
1
216 Views
Last Modified: 2010-04-05
hi
how i can know a file on cd is damaged or no
0
Comment
Question by:mahdiparak
1 Comment
 
LVL 4

Accepted Solution

by:
LMuadDIb earned 500 total points
ID: 17155257
do you mean if the file is readable on the cd? Why not try to copy the file to a tmp dir
or do you want file integrity? For file integrity I think the only way is to compare the file to a checksum/hash

CRC http://www.torry.net/quicksearchd.php?String=crc&Title=Yes
HASH http://www.torry.net/quicksearchd.php?String=hash&Title=Yes

http://www.swissdelphicenter.ch/torry/showcode.php?id=268

some basic code for checksum:
calculate a simple checksum:  http://www.swissdelphicenter.ch/torry/showcode.php?id=1311
calculate the checksum of a file: http://www.swissdelphicenter.ch/torry/showcode.php?id=324

---

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now