Format an external drive - Delphi 2010

Posted on 2011-10-08
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-SSA
    LVL 25

    Accepted Solution


    Author Comment


    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

    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


    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


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


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
    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.
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    734 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

    21 Experts available now in Live!

    Get 1:1 Help Now