Windows – How to wipe Windows from the command line

formattingwindows

I need to erase all my data before giving out my old computer but I don't have the Windows CD.

How can I wipe my C: drive from the command line?

Best Answer

format c: /fs:NTFS /p:1

The format command used in this way will format the E drive with the NTFS file system and write zeros to every sector of the drive once.

A single pass of zeros to a hard drive will prevent all sofware based file recovery programs from extracting information from the drive. If you'd like to protect yourself from more invasive ways of recovering data, increase the number of passes or, better yet, choose a true data destruction program with more advanced options.

Related Question