473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Designing a scandisk tye utility

hello,
I need to design a scandisk type utility in c. which will check the
disk, the directory structure, FAT for errors nd correct them.....

can u please tell me how to proceed...
do i hv to use the int13h or r there other ways too...??

Thanks....

Oct 14 '06 #1
4 1539
amit said:
hello,
I need to design a scandisk type utility in c. which will check the
disk, the directory structure, FAT for errors nd correct them.....

can u please tell me how to proceed...
do i hv to use the int13h or r there other ways too...??
The answer to your question depends entirely on the
operating-system-specific extensions your implementation
makes available to you, which in turn depend on your platform.

I suggest you ask in one of these newsgroups for further advice:

comp.os.programmer.ms-windows.win32
comp.unix.programmer
comp.os.msdos.programmer
comp.os.linux.development.apps

or something of that kind.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Oct 14 '06 #2

amit wrote:
hello,
I need to design a scandisk type utility in c. which will check the
disk, the directory structure, FAT for errors nd correct them.....

can u please tell me how to proceed...
do i hv to use the int13h or r there other ways too...??

Thanks....
HI, others will tell you, correctly, that while C is just about the
perfect language for this kind of programming, this isnt the right
newsgroup for this kind of discussion.

BTW a few suggestions:

(1) There already are a big slew of programs that do this, including
many free ones, not to mention ones you get for free with the OS:
CHKDSK, and SCANDISK.

(2) These kind of programs are very hard to get right. The first 333
times you try to do this you're likely to make the disk worse than it
originally was. Plus it's hard to tell if you've repaired things
correctly. I wouldnt try to write this unless I had say, six months
of free time and a very high tolerance for frustration.
(3) Most newer computers are using more advanced file systems than
the old MSOS FAT fie syste. For example NTFS. These are much harder
to fix.
Sorry for the disappointing news, but that's the way it is.

Oct 14 '06 #3
Richard Heathfield wrote:
amit said:
>I need to design a scandisk type utility in c. which will check the
disk, the directory structure, FAT for errors nd correct them.....

can u please tell me how to proceed...
do i hv to use the int13h or r there other ways too...??

The answer to your question depends entirely on the
operating-system-specific extensions your implementation
makes available to you, which in turn depend on your platform.

I suggest you ask in one of these newsgroups for further advice:

comp.os.programmer.ms-windows.win32
comp.unix.programmer
comp.os.msdos.programmer
comp.os.linux.development.apps

or something of that kind.
He also needs to learn how to open and to terminate sentences,
spell 'you', 'I', 'have', 'are'.

--
"The mere formulation of a problem is far more often essential
than its solution, which may be merely a matter of mathematical
or experimental skill. To raise new questions, new possibilities,
to regard old problems from a new angle requires creative
imagination and and marks real advances in science."
-- Albert Einstein
Oct 15 '06 #4
amit wrote:
hello,
I need to design a scandisk type utility in c. which will check the
disk, the directory structure, FAT for errors nd correct them.....

can u please tell me how to proceed...
do i hv to use the int13h or r there other ways too...??

Thanks....
This depends entirely on the API provided by the operating system,
(BIOS interrupts in case of DOS, Raw disk read APIs in case of Windows
and /dev/*** in case of Linux etc.). Also anything beyond FAT and FAT16
may be difficult to check. If it's a personal project then IMHO, you
should take up something else. If you're still determined to go ahead
then lookup the source code for the Linux fsck program, (specifically
fsck.vfat). In anycase ask further Non-ISO C questions in appropriate
software/system specific groups.

Oct 15 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sky Sigal | last post by:
Hello: I'm currently messing around, and need as much feedback/help as I can get, trying to find the most economical/graceful way to build usercontrols that rely on styling to look any good... ...
5
by: Diffident | last post by:
Hello All, I have written a webform which is by default derived from "Page" class. I have coded another utility class with few methods and an object of this class is instantiated from the webfom...
3
by: mystilleef | last post by:
Hello, I need to design a plug-in system for a project. The goal is to allow third party developers interact with an application via plug-ins in a clean and robust manner. At this point I am...
1
by: huyuhui | last post by:
The following is a question of LOAD utility. Question: How does the DB2 enforce table check constraints for data added to table with the LOAD utility? A. With the BUILD phase of LOAD B. With the...
8
by: pransri2006 | last post by:
Hi guys! I think all of u know about the designing of compilers. Can any body tell me about the designing of the compilers. And also tell me the difference between the compilers and Interpreter...
3
by: JHNielson | last post by:
I am trying to make an interface to run a utility I have devloped. The user would need to be able to choose from about 6 different macros they could run. My question is, is there a way to use...
1
by: anujaf | last post by:
I'm a VB 6 programmer. I want jump to Web designing. I would like to know what is the best web designing tool which can be intergrated with the ASP .net and what is the best book to learn web...
0
by: anujaf | last post by:
I'm a VB 6 programmer. I want jump to Web designing. I would like to know what is the best web designing tool which can be intergrated with the ASP .net and what is the best book to learn web...
0
by: hsheboul | last post by:
Thanks to Markus for pointing me to all the Apache stuff http://bytes.com/topic/html-css/answers/876342-automating-web-site-template My Web site is hosted on a shared Linux hosting, that runs the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.