Hi.
I have changed the variabel names to danish words
I doesn't work. It shows the path
code:
function ListDirectory(Directory,Wnd)
{
Hent = Info.GetFolder(Directory);
var Enum = new Enumerator(Hent.files);
Liste = "Sti: " + Directory + "\n\n"
for (; !Enum.atEnd(); Enum.moveNext())
{
Filnavn = Enum.item();
Liste += Filnavn + "\n"
}
FjernSti = new RegExp("("+Directory+")","gi");
Wnd.SendMessage(Liste.replace(FjernSti,""));
}