Comparing a portion of a Windows text file using windows FC command
14:52 01 May 2026

I have 2 text files in a directory that I want to compare.
File_A contains: Data 12345 Time 1:00 PM Date May 1 2026

File_B contains: Data 12345 Time 3:15 PM Date May 3 2026

I can simply use FC C:\File.txt_A File_B.txt but the above compare will kick out a difference not because Data 12345 (the important bits) are different but because the time and date stamps are different.

I'm trying to find out if there is an ability the ignore the data to the right of 12345 using FC . That is, can I run windows FC where it would only compare the 2 file say from the start (column 1?) of the file to the end of the Data 12345 thus insuring the important part of the files match regardless of when they were timestamped.

Thanks in advance for your help.

windows file compare txt