Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get long path names in WinNT 4
Message
From
03/10/2002 14:14:45
 
 
To
03/10/2002 12:56:29
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00707404
Message ID:
00707453
Views:
28
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform