Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scripting help... get list of files with owner and date
Message
Information générale
Forum:
Windows
Catégorie:
Administration & Sécurité
Divers
Thread ID:
01108105
Message ID:
01108978
Vues:
12
>Hi Alex,
>
>This will give you all the information you need, I believe:
>
>'Filelist.vbs
>Option Explicit
>Dim lcFolder, oShell, oFolder, oFSO, i,oReportFile,child
>lcFolder="c:\"
>'or lcFolder="\\ComputerName\ShareName" for network PC
>
>Set oShell = Createobject ("Shell.Application")
>Set oFolder = oShell.Namespace (lcFolder)
>
>Set oFSO = CreateObject("Scripting.FileSystemObject")
>
>Set oReportFile = oFSO.CreateTextFile("c:\outfile.txt", True)
>
>For each child in oFolder.Items
>        oReportFile.Write child.name + ", size  " & child.size & ", owner "& oFolder.GetDetailsOf (child, 8) & _
>	 ", date modified "& oFolder.GetDetailsOf (child, 3) & ", date created "& oFolder.GetDetailsOf (child, 4) & _
>		", date accessed "& oFolder.GetDetailsOf (child, 5) & chr(13) + chr(10)
>next
>
>oReportFile.Close
>
Yuri

Thanks, this is similar to what Hugo gave me. When I ran it, in owner it didn't tell me who the owner was, but I ran it on my computer. I will check a shared folder and see what happens.
Alex
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform