我正在尝试为具有深层文件夹结构的文件共享创建CSV文件。
我希望CSV文件如下所示:
filename, filepath, file type, folderStructure
目前我有以下内容:
#Get-ChildItem -Path D:\ -Recurse
$directory="d:\"
gci $directory -recurse |
where {$_.psiscontainer} |
foreach {
get-childitem $_.fullname |
sort creationtime |
select -expand fullname -last 1
}
+图像 ++ image1.jpg +列表 ++导出 +++ export1.xlsx +++ Export4.csv - Austin T French