Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The obvious-to-me approaches fail.

# format h: /fs:ntfs /q /y /V:512MB Disk
Invalid parameter - Disk

# format h: /fs:ntfs /q /y /V:"512MB Disk"
Invalid parameter - Disk"

# format h: /fs:ntfs /q /y /V:"512MB\ Disk"
Invalid parameter - Disk"

# format h: /fs:ntfs /q /y /V:512MB\ Disk
Invalid parameter - Disk

Okay, so label works after-the fact.

# label h: 512MB Disk

#

But how to do it using format? Am I missing some kind of escape sequence?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It seems that the command-line parser used by format.com simply does not support quoting of spaces.

The simplest workaround is:

format h: /y/q/fs:ntfs/v:foo && label h: My new disk
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.