Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HD_Serial x Volume_label
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00551618
Message ID:
00554042
Vues:
17
>>>Sergey's answered your questions with API ways, but the volume label can also be retrieved using the ADIR() function by passing 'V' as one of the attributes.
>>
>>Can you give an example using this ?
>>I haven't found any documentation about V attribute.
>>
>>I also tried those but no volume serial was returned.
>>
>>? ADIR(v,'c:','DV')
>>DISPLAY MEMORY LIKE v
>>? ADIR(v,'c:\','DV')
>>DISPLAY MEMORY LIKE v
>>? ADIR(v,'c:\*.*','DV')
>>DISPLAY MEMORY LIKE v
>>? ADIR(v,'c:\*.*','V')
>>DISPLAY MEMORY LIKE v
>>
>
>Even back in 2.6 is wasn't documented, except for in the example provided there. = ADIR(a_dir, "C:", "V") works in both 6.0 and 7.0, returning a single array element containing the volume label. Note, however, that it may not work on remote drives.

It is documented in
- 2.6 "You can include V in to return the volume name of the current drive."
- 6.0 "You can include V in cAttribute to return the volume name of the current drive."
- 7.0 "You can include V in cAttribute to return the volume name of the current drive."
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform