@echo off REM AFormat.bat -- Quick Format Floppy with no prompts REM v1.0 ??? JP Vossen REM v2.0 24-Dec-1998 JPV Modifed to write data file REM v2.1 11-Jan-1999 JPV Modifed for /q /autotest REM v2.2 19-Jul-2001 JPV Modifed for Win2K (no more autotest) REM v2.3 10-Oct-2001 JPV Modifed to not show "format" screen output REM v2.4 2002-11-09 JPV Modifed to show "format" screen output--can't see errors if not "%1" == "" goto Start echo. echo Format a floppy with NO user input needed! (v2.2) echo Usage: %0 (-q or -f) echo. echo -q Quick (just nuke and re-write the FAT) echo -f Full (low-level format the entire disk) echo. goto EOF :Start rem format a: /q /autotest REM Old way if /autotest does not work echo. > %TEMP%\qformat.dat echo. >> %TEMP%\qformat.dat echo n >> %TEMP%\qformat.dat echo n >> %TEMP%\qformat.dat echo. >> %TEMP%\qformat.dat echo. if "%1" == "-q" echo %0 -- Quick Format (no user input required)... if "%1" == "-f" echo %0 -- FULL format (no user input required)... echo. if "%1" == "-q" format a: /u /q < %TEMP%\qformat.dat | egrep -v "^Insert new|^and press|^Volume|^QuickFormat" if "%1" == "-f" format a: /u < %TEMP%\qformat.dat | egrep -v "^Insert new|^and press|^Volume|percent completed|^Format" del %TEMP%\qformat.dat > NUL