code:function ConvertPath(sString){ var MAX_PATH = 260; var sBuffer = Interop.Allocate(2*(MAX_PATH)+2); Interop.Call('kernel32', 'GetFullPathNameW', sString, MAX_PATH, sBuffer, ''); return sBuffer.ReadString(0); }