Format an external drive - Delphi 2010

I'd like to be able to format an attached external drive in a Delphi 2010 app. Preferably from a Win API (as opposed to creating a BAT file, then executing it) that allows choices: FAT16, FAT32, NTFS or FAT64 (xFAT -if driver exists (XP) or Vista / W7).

TIA, Ed
LVL 3
Ed CovneyRetiredAsked:
Who is Participating?
 
Emmanuel PASQUIERFreelance Project ManagerCommented:
0
 
Ed CovneyRetiredAuthor Commented:
@epasquier:

The magsys DiskFmt utility looks very promising except for the exFat format. I've written them to ask if exFat could be included or if I could alter their code to attempt the change myself.
0
 
Emmanuel PASQUIERFreelance Project ManagerCommented:
yes, they seemed to have been very active maintaining their components for all delphi versions and latest Windows OS as well.
I don't really see why you need ExFat, but if you really do, then yo might as well ask them to add it, they will be the most competent to do it for Delphi world, IMO.
0
 
Ed CovneyRetiredAuthor Commented:
@epasquier:

He's already gotten back to me and basically said his app uses Window's functions so recommended I try to add "exFAT". It fails in both XP where the exFAT isn't native and Win7 where it is. I still think there's hope - it's just that I don't know what I'm doing.

btw, ExFat's greatest pro is that's it is NOT ntfs, i.e. not managed by windows. Much, much, much faster back-ups and turning sharing on and off is instantaneous.

Thanks again as your advice is always greatly appreciated.

Ed

0
 
Ed CovneyRetiredAuthor Commented:
UPDATE:

It appears Windows 7 (and perhaps Vista) can exFAT format fixed drives but only from the CMD shell.
"Format X: /FS:exFAT"

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.