Rated 3 out of 5 stars

leer.js :

var argObj = WScript.Arguments;

if (argObj.length == 0) {
WScript.Echo("Bitte vollstaendige Pfadangabe!");
}
else {

var Verz = argObj.item(0);
var FsObj = WScript.CreateObject("Scripting.FileSystemObject");

if (FsObj.FolderExists(Verz)) {
var FolderObj = FsObj.GetFolder(Verz);

if (FolderObj.Size == 0) {
WScript.Echo("Das Verzeichnis ist leer!");
}
else {

var File = new Enumerator(FolderObj.files);
WScript.Echo("Das Verzeichnis existiert!");
WScript.Echo("Name des Ordners: " + FolderObj.Name);

for (; !File.atEnd(); File.moveNext()) {

WScript.Echo("Name der Dateien: " + File.item().Name);
}
}
}
else {
WScript.Echo("Das Verzeichnis existiert nicht!");
}
}

This user has other reviews of this add-on.