Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.