🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #43

Re: Obtaining the volume label

#43
From: Jerzy Tarasiuk
Date: Fri, 30 Oct 1992 04:37
13 lines
1380 bytes
>>>>> On 26 Oct 92 11:17:15 GMT, frisk@complex.is (Fridrik Skulason) said:
Fridrik> The most obvious way to determine the volume label of a specific drive would
Fridrik> seem to be (using Borland C)
Fridrik>     findfirst("X:\\*.*",&ff,FA_LABEL)
Fridrik> Unfortunately, things are not that easy, as this call could return the same
Fridrik> name for different volume labels, such as "AAAAAA  A  " and "AAAAAA.A   ".
Fridrik> In both cases the name "AAAAAA.A" would be returned.
Fridrik> The problem is of course that volume labels can include the "." character
Fridrik> in the middle of the name - something which regular file names cannot.

In all DOS versions I tried it a '.' in volume label was illegal.
But, of course, someone can set it using Norton Disk Editor.
To get volume label "as it is" use Extended FCB FindFirst.
Technical Details
Message-ID: <JT.92Oct30053716@fizyk1.fuw.edu.pl>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!fuw.edu.pl!cocos!jt
References: <114@complex.complex.is>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!fuw.edu.pl!cocos!jt
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: Obtaining the volume label
In-Reply-To: frisk@complex.is's message of 26 Oct 92 11:17:15 GMT
Message-ID: <JT.92Oct30053716@fizyk1.fuw.edu.pl>
Sender: news@fuw.edu.pl
Nntp-Posting-Host: fizyk1
Organization: Warsaw University Physics Dept.
References: <114@complex.complex.is>
Date: Fri, 30 Oct 1992 04:37:16 GMT
Lines: 13