On 26/01/2014 18:32, Frank Cazabon wrote:
On 25/01/2014 09:33 PM, Darren wrote:
Not sure about Blat but for shortfilename this works for me in Windows 7.

DECLARE INTEGER GetShortPathName IN kernel32;
         STRING lcLongPath, STRING @lcShortPath,;
         INTEGER nBuffer

lcName = GETFILE()
         lcBuffer = Replicate(CHR(0), 512)
lnResult = GetShortPathName(lcName, @lcBuffer, 512)  && Len(lcBuffer)

CLEAR DLLS GetShortName

WAIT LEFT(m.lcBuffer, m.lnResult) WINDOW



Hmm. This same code (copied and pasted) doesn't work for me in Windows 8.1 64 bit

works OK in Win7 64 bit.

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to