@Echo off
:Begin
Format A: /s
If errorlevel 1 goto End
Echo An error occurred during the formatting process.
:End
