Solved

test File

Posted on 2006-07-21
1
217 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi XE10, MySQL Query 4 143
Send message from delphi to whatsapp, is it possible? 3 1,405
FMX enumerated colours 2 97
how to center only a line in richedit? 4 56
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

815 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

11 Experts available now in Live!

Get 1:1 Help Now