Solved

test File

Posted on 2006-07-21
1
215 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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

12 Experts available now in Live!

Get 1:1 Help Now