[fpc-pascal]Reading and writing volume IDs
Aitor Santamar�a
aitor.sm at wanadoo.es
Tue Oct 2 10:37:26 CEST 2001
Ooops!! You're right, sorry.
Well, what about writing labels?
Anyone has something written? Otherwise I am afraid I would have to use a DOS call and mess up with real mode pointers, etc.
Aitor
> At 00:12 02/10/01 , vous avez écrit:
> >Hi all,
> >
> >I thought the following:
> >
> >FindFirst ('c:\', volumeID, SR);
> >mylabel := sr.name;
>
> Maybe you should try
> FindFirst ('c:\*.*', volumeID, SR);
>
> The pattern is important here !
> if the volume ID doesn't match the given pattern, you will
> get NO_MORE_FILE (Dos error 18) as for usual files.
>
> >would work in order to get the volume ID, but it doesn't. THe strange
> >thing is that (except for misprints) such a code gives me a 'no more
> >files' DOSerror under TP, and a 'file not found' (I think) under FPK.
> >Now how can I read such a volume ID?
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
_____________________________________________________________________
Si no encuentras lo que buscas... ¿a qué estás esperando para entrar en www.wanadoo.es?
Con nuestro nuevo motor de búsqueda conseguirás más rápido resultados de actualidad, personalizados y renovados diariamente.
More information about the fpc-pascal
mailing list