fc.exe:Windows 8中的命令行工具 [英] fc.exe: command line tool in windows 8

查看:112
本文介绍了fc.exe:Windows 8中的命令行工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要比较两个文本文件并获得不同的行。

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

我用过


fc file1.txt file2.txt> fc.txt

fc file1.txt file2.txt > fc.txt

我得到了结果,但是有问题:

I got the result but there is a problem:

如果任何文件中的一行超过128个字符长,则会将其分成另一行(在第128个字符之后),然后进行比较。

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

这是一个公共问题吗?
(此问题与以下问题不同: http://support.microsoft .com / kb / 953929

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

推荐答案

如果在PowerShell下运行, fc Format-Custom 命令的别名。您要运行 fc.exe

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

这篇关于fc.exe:Windows 8中的命令行工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆