3

I truly cannot believe I have to ask this, but after searching countless times and finding nothing online on how to do this, I must ask.

I already know about the "label" command. While it does output the label if you do:

label H:

... the purpose of the command is to change/set it -- not read it, so it asks for input in the end, and there are no flags to turn that off, so it sadly cannot be used. I have looked in:

label /?

Basically, forget about that command. I need something which outputs the label for the drive letter and then stops.

  • 2
    Echo. | label c: – Mark Mar 2 at 5:16
1

Like the comment from Mark:

<nul label c:

or even without tricks

vol c:
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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