问题描述
帮助请求: 嗨
我有3个Excel CSV文件
FileAA.csv- Live plant
FileBB.csv - 模拟工厂
我想比较AA和BB文件并保存FileCC.csv中的差异
我想从BATCH文件中执行它,操作符将从桌面执行..
我玩过这个脚本,但它似乎没有做我想做的事,也没有填充FileCC.csv
$ file1 = import-csv -Path" E:\FileAA.csv"
$ file2 = import-csv -Path" E:\FileBB.csv"
Compare-Object $ file1 $ file2 -property col1,col2 -IncludeNotEqual
希望你能指出我正确的方向
Help Request:Hi
I have 3 Excel CSV Files
FileAA.csv- Live plant
FileBB.csv - Simulation Plant
I would like to compare both AA and BB files and save the differences in FileCC.csv
I would like to execute this from a BATCH File an operator will execute from the desktop..
I have played with this script but it does not seem to do what I want it to do nor does it populate FileCC.csv
$file1 = import-csv -Path "E:\FileAA.csv"
$file2 = import-csv -Path "E:\FileBB.csv"
Compare-Object $file1 $file2 -property col1,col2 -IncludeNotEqual
Hope you can point me in the right direction
这篇关于用于比较CSV的批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!