What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » List file

List file
Author: Message:
KnRd_WC
Junior Member
**

Avatar
Florian PAQUET

Posts: 74
Reputation: 1
35 / Male / Flag
Joined: Aug 2006
Undecided  RE: List file
Really ?? I tried with your function, and it works fine....

quote:
Sti: \ <-- Maybe you want to remove that ??? (If you want to keep the path name here, see the function bottom)

  AUTOEXEC.BAT
  BOOT.BKK
  boot.ini
  Bootfont.bin
  CONFIG.SYS
  IO.SYS
  MSDOS.SYS
  NTDETECT.COM
  ntldr
  pagefile.sys
  sqmnoopt00.sqm


To keep the path name "Sti : C:\", for example :

code:
function ListDirectory(Directory,Wnd)
    {
    Hent = Info.GetFolder(Directory);
    var Enum = new Enumerator(Hent.files);
    Liste=""
    for (; !Enum.atEnd(); Enum.moveNext())
    {
    Filnavn = Enum.item();
    Liste += Filnavn + "\n"
    }
    FjernSti = new RegExp("("+Directory+")","gi");
    Wnd.SendMessage("Sti: " + Directory.replace(/\\\\/gi,'\\')+ "\n\n"+Liste.replace(FjernSti,""));
    }

This post was edited on 08-23-2006 at 01:03 PM by KnRd_WC.
08-23-2006 12:57 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
List file - by SnuZZer on 08-22-2006 at 02:08 PM
RE: List file - by markee on 08-22-2006 at 02:25 PM
RE: List file - by KnRd_WC on 08-22-2006 at 02:29 PM
RE: List file - by matty on 08-22-2006 at 03:07 PM
RE: List file - by SnuZZer on 08-22-2006 at 03:11 PM
RE: List file - by ShawnZ on 08-22-2006 at 03:13 PM
RE: List file - by SnuZZer on 08-22-2006 at 03:16 PM
RE: List file - by KnRd_WC on 08-22-2006 at 03:33 PM
RE: List file - by SnuZZer on 08-22-2006 at 06:54 PM
RE: List file - by KnRd_WC on 08-22-2006 at 07:13 PM
RE: List file - by SnuZZer on 08-22-2006 at 07:29 PM
RE: List file - by KnRd_WC on 08-22-2006 at 07:42 PM
RE: List file - by SnuZZer on 08-23-2006 at 11:06 AM
RE: List file - by SnuZZer on 08-23-2006 at 11:38 AM
RE: List file - by KnRd_WC on 08-23-2006 at 12:39 PM
RE: List file - by SnuZZer on 08-23-2006 at 12:52 PM
RE: List file - by KnRd_WC on 08-23-2006 at 12:57 PM
RE: List file - by SnuZZer on 08-23-2006 at 01:05 PM
RE: List file - by KnRd_WC on 08-23-2006 at 01:11 PM
RE: List file - by SnuZZer on 08-23-2006 at 01:19 PM
RE: RE: List file - by KnRd_WC on 08-23-2006 at 01:22 PM
RE: List file - by SnuZZer on 08-23-2006 at 01:25 PM
RE: List file - by SnuZZer on 08-23-2006 at 01:33 PM
RE: List file - by KnRd_WC on 08-23-2006 at 02:32 PM
RE: List file - by SnuZZer on 08-23-2006 at 03:32 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