Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell 使用Import-Clixml加载部分数组_Powershell - Fatal编程技术网

Powershell 使用Import-Clixml加载部分数组

Powershell 使用Import-Clixml加载部分数组,powershell,Powershell,我这样做: gci -recurse | where { ! $_.PSIsContainer } | Sort-Object Length | Export-Clixml s:\Files.xml 它创建了一个大约3 GB大小的文件。我可以按顺序加载元素而不是整个集合吗? 我希望能够访问文件大小、完整路径和修改时间,但实际上并不想用它制作csv文件(特别是因为我以后可能需要更多信息).像这样吗 gci -recurse | where { ! $_.PSIsContainer } | se

我这样做:

gci -recurse | where { ! $_.PSIsContainer } | Sort-Object Length | Export-Clixml s:\Files.xml
它创建了一个大约3 GB大小的文件。我可以按顺序加载元素而不是整个集合吗? 我希望能够访问文件大小、完整路径和修改时间,但实际上并不想用它制作csv文件(特别是因为我以后可能需要更多信息).

像这样吗

gci -recurse | where { ! $_.PSIsContainer } |
 select length,fullname, lastwritetime | 
    Sort-Object Length | Export-Clixml s:\Files.xml