Re: Help: How do I convert LFN to truncated 8.3?

new topic     » goto parent     » topic index » view thread      » older message » newer message

V> Does anyone here how to convert long file name paths to truncated
V> DOS 8.3 names using Euphoria code? I want to supply a LFN string
V> and use a function that would return the truncated 8.3 equivelent.

V> Eg:

V> Input = "C:\\Documents and Settings\\Vincent\\Foo.e" (LFN)
V> Output = "C:\\DOCUME~1\\VINCENT\\FOO.E" (DOS 8.3)

V> I dont wish to use a LFN library in this case for compatability reasons.

V> Thanks in advance for any help.

Use the kernel32 function:

long GetShortPathNameA(string, string, long)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu