From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I check to see if two files are identical

I wish to check two text files to see if they are identical. Is there a high level way, or do I need to specifically read the files and compare the data. I am using a PC running windows 2000.
0 Kudos
Message 1 of 2
(2,416 Views)
Hi,

You can call the DOS command comp with "System Exec.vi" and redirect the result into a text file. At the end you read the text file to see the comparison result.

Type comp /? at a DOS command prompt to see the help for comp.

See "ping.vi" in attachment. You can do something very similar with comp.

I hope it will help you.
0 Kudos
Message 2 of 2
(2,416 Views)