What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [HELP]File listing and getting it to work

[HELP]File listing and getting it to work
Author: Message:
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: [HELP]File listing and getting it to work
It needs to be used like this:
code:
var list = ListFiles("C:\\",1);
Debug.Trace("First File in C:\\ is "+list[0]);
That would get a list of all files in C:\ and Debug.Trace the first file in the list.

So in your example you'd need to do this
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
    if(Message.match("^!list"))
    {
        var folder = Message.substr;
        var stuff = ListFolders(folder,1);
        ChatWnd.SendMessage(stuff.join("\r\n"));
    }
}
That would send a list of your files to your contact with each file on its own line.
08-28-2006 10:16 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[HELP]File listing and getting it to work - by Vector on 08-28-2006 at 09:52 PM
RE: [HELP]File listing and getting it to work - by Silentdragon on 08-28-2006 at 10:16 PM
RE: [HELP]File listing and getting it to work - by Vector on 08-29-2006 at 09:46 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