I want to get the author/creator/last saver of file(any type file).
How can i do?
by investigating, i found that we can get the details by Shell32 Com component,
But how to import the Shell32 into UiPath? where is the Shell32 NuGet Package i can download?
@Paul_Wang below code will help you
var_Owner =System.IO.File.GetAccessControl(filePath).GetOwner(AccessControlType.FileSystemAccess);
var_Modified_User = System.IO.File.GetLastWriteTimeUtc(filePath).ToString();
Hi @Paul_Wang
To get all this
for folder
folder = shell.Namespace(“C:\Path\To\Your\File”).Items
for file
file = folder.Item(“YourFileName.txt”)
for author
author = folder.GetDetailsOf(file, 20) ’ 20 represents the Author property
In the MsgBox(author)
How to import shell to UiPath Project?
And How to get shell Nugget Package or .dll?