Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scripting help... get list of files with owner and date
Message
General information
Forum:
Windows
Category:
Administration & Security
Miscellaneous
Thread ID:
01108105
Message ID:
01108978
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform