Solved

test File

Posted on 2006-07-21
1
221 Views
Last Modified: 2010-04-05
hi
how i can know a file on cd is damaged or no
0
Comment
Question by:mahdiparak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month4 days, 21 hours left to enroll

635 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