![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-16 11:18 |
47,813 topics / 349,903 posts / today 0 new / 48,258 members |
| DOS疑难解答 & 问题讨论 (解答室) » How to compare two files |
| Printable Version 635 / 5 |
| Floor1 梅义 | Posted 2004-02-21 00:00 |
| 初级用户 Posts 7 Credits 130 | |
|
How do I use the FC command to compare two files
and show only their differences Thanks |
|
| Floor2 nre | Posted 2004-02-21 00:00 |
| 银牌会员 Posts 361 Credits 1,210 | |
|
fc /b compare in binary mode
fc /l compare in ASCII mode For example, fc /l x:\1.txt x:\2.txt >3.txt compares 1.txt and 2.txt in binary mode and saves the result to 3.txt in the current directory |
|
| Floor3 梅义 | Posted 2004-02-21 00:00 |
| 初级用户 Posts 7 Credits 130 | |
|
But if you do it that way
even the identical parts are shown |
|
| Floor4 梅义 | Posted 2004-02-21 00:00 |
| 初级用户 Posts 7 Credits 130 | |
|
But if you do it that way
even the identical parts are shown |
|
| Floor5 zhri | Posted 2004-02-24 00:00 |
| 高级用户 Posts 153 Credits 665 | |
|
Can the comp command do it?
It can show the first 10 places where the two files differ |
|
| Floor6 中文字幕 | Posted 2004-02-26 00:00 |
| 中级用户 Posts 47 Credits 279 | |
|
I personally think NRE's method is better
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |