Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get long path names in WinNT 4
Message
De
03/10/2002 14:14:45
Antonio Lopes (En ligne)
BookMARC
Coimbra, Portugal
 
 
À
03/10/2002 12:56:29
Antonio Lopes (En ligne)
BookMARC
Coimbra, Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00707404
Message ID:
00707453
Vues:
29
>How can I get the long name of a file, given its short name? The kernel32 GetLongFileName function [updated...] requires NT5 or greater, so I'm a bit stuck here.

Found an alternative:
FUNCTION GetLongName
LPARAMETERS tcShortName
LOCAL ARRAY laDir(1)

IF ADIR(m.laDir,m.tcShortName)=1
  RETURN ADDBS(JUSTPATH(m.tcShortName))+m.laDir(1)
ENDIF

RETURN ""
ENDFUNC
The path will remain in short form (left for a function revision, later on) but at least the file is fully identified by its long form.
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform