473,796 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1559
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.program mer.ms-windows.win32
comp.unix.progr ammer
comp.os.msdos.p rogrammer
comp.os.linux.d evelopment.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.program mer.ms-windows.win32
comp.unix.progr ammer
comp.os.msdos.p rogrammer
comp.os.linux.d evelopment.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
1418
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... It's the last part that has got me all frazzled (the 'rely on...to look good')... Let me explain -- and please bear with me as it's a bit longer than my usual questions:
5
2305
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 class. Methods inside the utility class set few global variables which act as mediums of persistence to hold data. Now my question is all works fine during my initial request and all the global variables are set correctly, but during later...
3
1898
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 overwhelmed by my inexperience with designing plug-in systems. Are there any good tutorials on how to design good plug-in systems with Python, or any language? What are the best
1
5962
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 SET INTEGRITY statement C. With the DELETE phase of the LOAD D. With the UPDATE CONSTRAINTS statement Answer is A
8
2194
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 which weresically used by the computers. I want to know about the basic compiler software.
3
1284
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 nicer buttons than the standard gray square ones in Access. It is for a very important client - so I would really like to add an extra-level of polish. I would like to use more web-style buttons. Is this possible? Thanks in advance
1
1318
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 designing tools. anuja_lak@yahoo.com
0
1217
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 designing tools. <send me a PM>
0
2036
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 Apache 2.2 I got multiple static "utility" files: CSS, JavaScripts, Impages, etc. In order to maintain a coherent and consistent structure, I put all these kind of utility files in one directory hierarchy. However, this directory structure might...
0
9527
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10223
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.