[comp.lang.pascal] Wondering

st10t@ELROY.UH.EDU (Bloo Square) (05/22/91)

I am using a weird sort of unix news instead of nice Vax news since
they knocked usenet off of our system so I hope this attempt at posting doesn't
fry.

I am trying to find a way to get the label off of a diskette
soap and water seems to ruin it

seriously, though it seems easy to get the file specs/pathspecs/bytes free
and not but nowhere does any help file mention labels and extracting them
from a disk

I am running TP5.5 if that help and any help would be appreciated

thanks St10t@jetson.uh.edu
Avijit the Ghosh

Someone asked me for the shrink version of pkunzip/zip and I lost
the address of this person as my account got accidently deleted
(those adminstrators have a sense of humor don't they)
but whoever asked for it, can mail me again!
However, I was wandering aimlessly on garbo.uwasa.fi looking for relevent
things and I thought I saw the complete pascal source for ZIP and UNZIP

but then again it could be an Hallucination

dave@tygra.Michigan.COM (David Conrad) (05/26/91)

Assuming you mean volume label, just call FindFirst ("\*.*",VolumeID,srchrec);,
although that's for the current drive, specify a drive letter if you want a
different drive, and then you want to look for the '.' in the srchrec.name
(using Pos) and delete it (using delete), and you've got it!  This works even
on Dos 4.01 where the volume label is stored in the boot record, it also
appears to be stored in the root directory.

David Conrad
dave@michigan.com
-- 
=  CAT-TALK Conferencing Network, Computer Conferencing and File Archive  =
-  1-313-343-0800, 300/1200/2400/9600 baud, 8/N/1. New users use 'new'    - 
=  as a login id.  AVAILABLE VIA PC-PURSUIT!!! (City code "MIDET")        =
   E-MAIL Address: dave@Michigan.COM