What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » path of historique storage directorie of MP!live

path of historique storage directorie of MP!live
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: path of historique storage directorie of MP!live
The reason why I don't just post code now a days is because everyone justs asks without doing any research. There is a reason there is MSDN from Microsoft. It is to tell you how to use the APIs. No offence but you have only asked for code from what I have seen without actually doing any yourself.

Why don't you try to do something yourself without constantly asking for us to just provide you with the code? It isn't that hard at all!

code:
/*
    Name:     GetDirectoryStructure
    Purpose:    Create a list of all the files from a given location on the disc
    Parameters:    sPath - Path to get all the files from
            includePath - If true, will include the full path to the filename, if false will only display the filename
    Return:    An array of the files from the path
*/

function GetDirectoryStructure(sPath, includePath) {
    var aFileNames = new Array();
    var Win32_Find_Data = Interop.Allocate(592);
    var hSearch = Interop.Call('kernel32', 'FindFirstFileW', sPath + '*', Win32_Find_Data);
    var hResult;
    while(hResult != 0){
        if((Win32_Find_Data.ReadString(44) !== '.') && (Win32_Find_Data.ReadString(44) !== '..') && !(Win32_Find_Data.ReadDWORD(0) & 0x10)){
            aFileNames.push ((includePath ? sPath : '')+Win32_Find_Data.ReadString(44));
        }
        hResult = Interop.Call('kernel32', 'FindNextFileW', hSearch, Win32_Find_Data)
    }
    Interop.Call('kernel32', 'FindClose', hSearch);
    return aFileNames;
}

This post was edited on 08-14-2007 at 03:02 AM by matty.
08-14-2007 12:54 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
path of historique storage directorie of MP!live - by mondator on 08-13-2007 at 07:12 PM
RE: path of historique storage directorie of MP!live - by matty on 08-13-2007 at 07:20 PM
RE: path of historique storage directorie of MP!live - by Matti on 08-13-2007 at 07:22 PM
RE: path of historique storage directorie of MP!live - by matty on 08-13-2007 at 08:05 PM
RE: path of historique storage directorie of MP!live - by mondator on 08-13-2007 at 08:26 PM
RE: path of historique storage directorie of MP!live - by matty on 08-13-2007 at 08:38 PM
RE: path of historique storage directorie of MP!live - by mondator on 08-14-2007 at 12:21 AM
RE: path of historique storage directorie of MP!live - by matty on 08-14-2007 at 12:54 AM
RE: path of historique storage directorie of MP!live - by mondator on 08-14-2007 at 10:14 AM
RE: path of historique storage directorie of MP!live - by matty on 08-14-2007 at 03:44 PM


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