Format diskettes on the fly

Diskettes are almost universally reviled for being too slow and too small, yet almost everyone depends on them for backing up individual files and sharing data among computers. But formatting them is a chore. You have to open Explorer, then navigate to the floppy drive, and choose the Format command from a menu. This is where a batch file can come in handy.

If you just want to format a disk, fire up Notepad and type format a: /autotest (type b: instead of a: if that's the drive you want to use). Save the file to a desired folder as something like fmt.bat, making sure to use the three-letter .bat extension. (I keep a separate folder just for batch files.) But be warned: The /autotest switch tells DOS to format a floppy disk without prompting you for confirmations. If you accidentally execute this batch file on a floppy containing data, use the DOS Unformat command to reverse the dire effects. Unfortunately, this rescue technique works only with Windows 3.x and DOS 6.x. If you use Windows 9x, look for the file on your hard disk. You may have to dig out your old DOS floppies and find a file called mirror.co_. Start a DOS window (choose Start-Programs-MS-DOS Prompt), and at the C: prompt, type expand a:\mirror.co_ c:\dos\ (your path may differ), and then press . Now open the fmt.bat file in Notepad and add the line c:\dos\mirror a: above the format line in Notepad. Mirror takes some space on the floppy, but it'll let you recover data after an unintended format.

Note that this batch file won't work with NT, nor will it allow for quick formatting. To overcome these limitations, change the format line to format a: /q

If you're not using NT, you can include the mirror line as before. Save and close the file. Now right-click an empty area of the folder identified in the command line (here, it's the Windows folder) and choose New-Text Document. Name it cr.txt. Double-click the new file to open it for editing. Press twice to insert two carriage returns, then type N followed by again. This will reply to the Format command's prompts. Save the file, and exit.

If you prefer to see the normal Windows Format dialogue box (Windows 9x and NT only), right-click the Start button and click Open or Explore. Double-click Programs, then navigate to the folder from which you'd like to launch the formatter. Right-click an empty area and choose New-Shortcut. In the Command Line box, type rundll32.exe shell32.dll,SHFormatDrive, taking note of the lowercase/uppercase letters. Click Next and type a name for your Shortcut (such as Floppy Formatter). Click Finish. If you want, you can assign a keyboard shortcut to launch this formatter: Right-click the new icon, select Properties, click the Shortcut tab, then click in the Shortcut key field and type a letter or number. The system will automatically add "Ctrl + Alt +" to what you type, and that key combination will be your keyboard Shortcut. Whenever you want to format a floppy, just choose your new command from the Start menu or press its keyboard Shortcut.

Join the PC World newsletter!

Error: Please check your email address.

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Scott Dunn

PC World
Show Comments

Cool Tech

Crucial Ballistix Elite 32GB Kit (4 x 8GB) DDR4-3000 UDIMM

Learn more >

Gadgets & Things

Lexar® Professional 1000x microSDHC™/microSDXC™ UHS-II cards

Learn more >

Family Friendly

Lexar® JumpDrive® S57 USB 3.0 flash drive 

Learn more >

Stocking Stuffer

Plox Star Wars Death Star Levitating Bluetooth Speaker

Learn more >

Christmas Gift Guide

Click for more ›

Most Popular Reviews

Latest News Articles


GGG Evaluation Team

Kathy Cassidy


First impression on unpacking the Q702 test unit was the solid feel and clean, minimalist styling.

Anthony Grifoni


For work use, Microsoft Word and Excel programs pre-installed on the device are adequate for preparing short documents.

Steph Mundell


The Fujitsu LifeBook UH574 allowed for great mobility without being obnoxiously heavy or clunky. Its twelve hours of battery life did not disappoint.

Andrew Mitsi


The screen was particularly good. It is bright and visible from most angles, however heat is an issue, particularly around the Windows button on the front, and on the back where the battery housing is located.

Simon Harriott


My first impression after unboxing the Q702 is that it is a nice looking unit. Styling is somewhat minimalist but very effective. The tablet part, once detached, has a nice weight, and no buttons or switches are located in awkward or intrusive positions.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?