Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Format an external drive - Delphi 2010

Posted on 2011-10-08
5
Medium Priority
?
475 Views
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).

TIA, Ed
0
Comment
Question by:Ed Covney
  • 3
  • 2
5 Comments
 
LVL 25

Accepted Solution

by:
epasquier earned 2000 total points
ID: 36938079
0
 
LVL 3

Author Comment

by:Ed Covney
ID: 36939155
@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
 
LVL 25

Expert Comment

by:epasquier
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.
0
 
LVL 3

Author Comment

by:Ed Covney
ID: 36943097
@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
 
LVL 3

Author Comment

by:Ed Covney
ID: 36943695
UPDATE:

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

0

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