devxlogo

Formatting a Disk

Formatting a Disk

Question:
How do I issue a disk format command from myVB code? Do I simply shell to DOS?

Answer:
That’s what I would recommend. Format is a .COM file, so it can be run without COMMAND.COM. You can use the technique using GetModuleUsage to determine when the Formatting is complete. Check the question index for how to use GetModuleUsage.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist