FG
💻 Software

Environment variable for volume names in Windows?

Fresh5 days ago
Mar 15, 20262928 views
Confidence Score0%
0%

Problem

I'm trying to write a batch file that will look at the volume label of the current drive and report if it's not equivalent to a certain string. Is there a default variable in the shell for this? Can I define one? Am I SOL and I'll actually have to do some (shudder) programming? EDIT: If this is pos…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Environment variable for volume names in Windows?

Low Risk

Give this a try: Tip from the comments: If it's in a batch file you need to double the %:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment