Learn how to a build a cloud-first strategyRegister Now


Format an external drive - Delphi 2010

Posted on 2011-10-08
Medium Priority
Last Modified: 2013-11-23
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).

Question by:Ed Covney
  • 3
  • 2
LVL 25

Accepted Solution

epasquier earned 2000 total points
ID: 36938079

Author Comment

by:Ed Covney
ID: 36939155

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.
LVL 25

Expert Comment

ID: 36939254
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.

Author Comment

by:Ed Covney
ID: 36943097

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.



Author Comment

by:Ed Covney
ID: 36943695

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


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses

810 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