Entry
Batch: Disk: Name: Operation: Get: How to get the name of a disk using 4dos/4nt? [@label / volume]
Sep 22nd, 2004 10:53
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 21 September 2004 - 02:58 am ------------------
Batch: Disk: Name: Operation: Get: How to get the name of a disk using
4dos/4nt? [@label / volume]
---
---
method: use the command dir
this will also show the name of your drive.
---
---
method: use the command '@LABEL[ <your disk letter>: ]
---
e.g.
// Get the label volume name of drive c:
echo %@LABEL[ c: ]
gives e.g. 'unlabeled'
---
e.g.
// Get the label volume name of drive d:
echo %@LABEL[ d: ]
gives e.g. 'Volume_1'
---
e.g.
// Get the label volume name of drive e:
echo %@LABEL[ e: ]
gives e.g. 'unlabeled'
---
e.g.
// Get the label volume name of drive f:
echo %@LABEL[ f: ]
gives e.g. 'PKBACK# 001'
---
e.g.
// Get the label volume name of drive g:
echo %@LABEL[ g: ]
gives e.g. 'unlabeled'
---
e.g. if the disk does not exist, you get this message:
echo %@LABEL[ m: ]
4NT: (Sys) The system cannot find the path specified.
"M:\"
ECHO is OFF
---
---
Internet: see also:
---
Batch: Disk: Name: How to check the name of a disk using 4dos/4nt?
http://www.faqts.com/knowledge_base/view.phtml/aid/31500/fid/936
---
Batch: Disk: Name: Operation: Set: How to set the name of a disk using
4dos/4nt? [@label / volume]
http://www.faqts.com/knowledge_base/view.phtml/aid/31502/fid/936
----------------------------------------------------------------------