Batch Script - COMP



This batch command compares 2 files based on the file size.

Syntax

COMP [sourceA] [sourceB]

Wherein sourceA and sourceB are the files which need to be compared.

Example

@echo off 
COMP C:\tp\lists.txt C:\tp\listsA.txt

Output

The above command will compare the files lists.txt and listsA.txt and find out if the two file sizes are different.

batch_script_commands.htm
Advertisements