1
我有大约50个文件,我将它们合并成一个文件名,然后是该文件的内容,然后在文件输出后留下一行可能是虚线例如它应该是这样的如何使用PowerShell中的文件内容获取文件名
File name -ABC xxxxxxxxxxxxxxxx (Content of the file) ..................... (dotted line after output) File Name - CDE xxxxxxxxxxxx (Content of the file) ...................
Get-ChildItem C:\temp | Get-Content
这个脚本给我我想要的格式输出不不。我无法找到获取文件名称的方法。