quote:Originally posted by Eljay wrong function matty code:function ConvertPath(sString){ var MAX_PATH = 260; var sBuffer = Interop.Allocate(2*(MAX_PATH)+2); Interop.Call('kernel32', 'GetLongPathNameW', sString, sBuffer, MAX_PATH); return sBuffer.ReadString(0); }
code:function ConvertPath(sString){ var MAX_PATH = 260; var sBuffer = Interop.Allocate(2*(MAX_PATH)+2); Interop.Call('kernel32', 'GetLongPathNameW', sString, sBuffer, MAX_PATH); return sBuffer.ReadString(0); }
quote:Originally posted by Matty How he said it worked?