use Win32::OLE; my $objShell = Win32::OLE->CreateObject("Shell.Application"); my $objFolder=$objShell->Namespace("c:\\a") or die "$!" ; my $a = $objFolder->ParseName("a.txt") or die "$!" ; print $objFolder->GetDetailsOf($a, 8) or die "$!" ;