我在 Google Drive 上有一个目录,其中的内容如下所示,
不涉及屏幕抓取、OCR 转换等的最佳方法是什么?提前致谢。
更新:根据以下评论,
PS C:\Users\bob> ls "G:\Other computers\My Laptop\LZ\20221225" | select Name,LastWriteTime,Length | Export.Csv "c:\videoPy\book1.csv"
以下是报告的错误...
Export.Csv : The term 'Export.Csv' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:84 \LZ\20221225" | select Name,LastWriteTime,Length | Export.Csv "c:\vid ...CategoryInfo : ObjectNotFound: (Export.Csv:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
答案1
这明白了。
Get-ChildItem "G:\Other computers\My Laptop\LZ\20221225" | Out-File -FilePath "c:\videoPy\book1.csv"