Offers
Thanks for visiting www.technoexam.com. Stay connected with us for more latest programming updates...

You are here : Home >> Tutorials >> Dos

Go
DOS Tutorial

Contents
Introduction to DOS
MS-DOS History
Execute Commands
Assoc
At
Attrib
Cd / Chdir
Chkdsk
Cls
Color
Copy
Date
Del / Erase
Echo
Exit
Format
Help
Md / Mkdir
Move
Pause
Rd / Rmdir
Rem
Ren / Rename
Time
Title
Tree
Type
Ver
Vol

Contact Us

+91-8806583119

FORMAT - DOS Command

It is used to format or erase information or data from a disk drive.

To view 'format' with its all possible parameters you can use following command. Its like help information to regarding that command.

format/?

Commands can be run using Microsoft Windows XP Command Prompt (cmd.exe)

Syntax :

FORMAT volume [/FS:file-system] [/V:label] [/Q] [/A:size] 
[/C] [/X]
FORMAT volume [/V:label] [/Q] [/F:size]
FORMAT volume [/V:label] [/Q] [/T:tracks /N:sectors]
FORMAT volume [/V:label] [/Q]
FORMAT volume [/Q]
where,

volume : It specifies the drive letter (followed by a colon), mount point, or volume name.

/FS:filesystem : It specifies the type of the file system (FAT, FAT32, or NTFS).

/V:label : It specifies the volume label.

/Q : It performs a quick format.

/C --> NTFS only: Files created on the new volume will be compressed by default.

/X : It forces the volume to dismount first if necessary. All opened handles to the volume would no longer be valid.

/A:size --> It overrides the default allocation unit size.

/F:size --> It specifies the size of the floppy disk to format (1.44)

/T:tracks --> It specifies the number of tracks per disk side.

/N:sectors --> It specifies the number of sectors per track.

Use 1:

format C:
- This will delete or erase all your data from C drive.

Use 2:

format c: /q
- It leads to quick format. It erases all data from C drive quickly.


Download PDF
Published on: 12th Nov 2010, Last Updated on: 18th Dec 2014

Mr. Dinesh Kudache
AUTHOR: Mr. Dinesh Kudache

Mr. Dinesh is the Founder and CEO of technoexam.com. He had 6+ years experience in Application Programming, System Programming, Web Design and Development, Google Expertise. He had written 5000+ various articles on programming. Browse more articles by this author.

Link this post on your Blog/Website :