ARexx (68/81)

From:Craig Hutchison
Date:2 Jun 2001 at 09:28:52
Subject:Re: How do I check files exist and are the same?

G'day Andrew,

On 02-Jun-01, you wrote:

AB> I am writing a script that is moving rather large files.

AB> I am wanting to find a way that I can:

AB> 1) Check if the space is there on the destination device
AB> 2) After copying the file to that device, check that it is
AB> the same as the source file.

Dunno how to go about the first, but the second is as easy as

If STATEF("Path/File1",2) ~= STATEF("Path/File2",2) then do...

Cache Ya,
Craig.

ARexx mailing list - No flames, no overquoting, no crossposting.
Unsub: Blank mail to mailto:arexx-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/