What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Full paths / short paths

Pages: (2): « First « 1 [ 2 ] Last »
[Help] Full paths / short paths
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Help] Full paths / short paths
quote:
Originally posted by Eljay
wrong function matty :P

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);
}

How he said it worked?
07-05-2006 05:45 PM
Profile E-Mail PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
36 / Male / –
Joined: May 2004
Status: Away
O.P. RE: RE: [Help] Full paths / short paths
quote:
Originally posted by Matty
How he said it worked?

No, I said it returned the same thing I put in. :S

GetLongPathNameW works.  Thanks for the help. :)
07-05-2006 05:46 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On