INFORMATICS

The Best

batch program formats a disk in drive A

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

Batch program formats a disk in drive A as a system disk. If the operation is successful, the goto command directs processing to the :end label:

 
 
echo off
format a: /s
if not errorlevel 1 goto end
echo An error occurred during formatting.
:end
echo End of batch program. 

Search