Scripting 在Powershell中,什么';判断两个文件是否不同的最快方法是什么?

Scripting 在Powershell中,什么';判断两个文件是否不同的最快方法是什么?,scripting,powershell,Scripting,Powershell,给定两个文件(在本例中为较大的CSV文件),Powershell中确定其内容是否不同的最有效方法是什么?有一个dos命令可以执行此操作 comp.exe 1.txt 2.txt

给定两个文件(在本例中为较大的CSV文件),Powershell中确定其内容是否不同的最有效方法是什么?

有一个dos命令可以执行此操作

comp.exe 1.txt 2.txt