fc.exe: command line tool in windows 8

2019-09-01 05:59发布

I need to compare two text file and get the lines which are different.

I used

fc file1.txt file2.txt > fc.txt

I got the result but there is a problem:

If a line in any file is more than 128 character long, It breaks it into another line (after 128th character) and then compares.

Is this a commom problem? (this problem is not the same as this one: http://support.microsoft.com/kb/953929)

1条回答
叼着烟拽天下
2楼-- · 2019-09-01 06:44

If you're running this under PowerShell, fc is an alias for the Format-Custom command. You want to run fc.exe.

查看更多
登录 后发表回答