var fso = new ActiveXObject("Scripting.FileSystemObject");
var oXL = new ActiveXObject("Excel.Application");
var oWB = oXL.Workbooks.Add();
var oSheet = oWB.ActiveSheet;
oSheet.Cells(1,1).Value = "Dateiname";
oSheet.Cells(1,2).Value = "Brennweite";
oSheet.Cells(1,3).Value = "Blende";
oSheet.Cells(1,4).Value = "Belichtungszeit";
var i,parts;
for(i=0; i<FF_GetImageCount(); i++)
{
FF_LoadExif(FF_GetImageName(i));
if(!FF_HasExif()) continue;
parts = SplitPath(FF_GetImageName(i));
oSheet.Cells(i+2,1) = parts.file;
oSheet.Cells(i+2,2) = FF_GetExifTagAdvanced("FocalLength");
oSheet.Cells(i+2,3) = FF_GetExifTagAdvanced("FNumber");
parts = FF_GetExifTagAdvanced("ExposureTime").replace("/","\\");
oSheet.Cells(i+2,4) = parts;
}
oXL.Visible = true;
oXL.UserControl = true;
function SplitPath(path)
{
var result = new Object();
result.drive = fso.GetDriveName(path) + "\\";
result.dir = fso.GetParentFolderName(path) + "\\";
result.file = fso.GetBaseName(path);
result.ext = "." + fso.GetExtensionName(path);
return result;
}