Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Credits 182 Posts 16 Joined 2004-02-16 00:00 22-year member UID 17594 Gender Male
Status Offline
The following is a quote from iceboy on 2004-1-14 21:18:35:
Hehe~
If it is a batch processing, it should be written like this:
@FORMAT c: /s /q /autotest >NUL
@ means not to display this command. If there is @ECHO OFF at the beginning of the batch file header, it is equivalent to adding an @ to each line of command, so there is no need to write it again. FORMAT is format.com.
c: is the drive letter, the drive to be formatted.
/s makes a system disk, that is, copies DBR, io.sys, msdos.sys, drvspace.bin, command.com.
/q is quick format, which only clears the DIR area and FAT table.
/autotest means that format.com does not prompt you whether to format.
>NUL redirects the output result to the "virtual device" and does not display it on the screen.