Page 1 of 1

UtilityHashLookUp

Posted: Tue Jun 07, 2005 11:34 pm
by dhiraj
Hello All,

Can UtilityHashLookUp be used to look up hash files that have been created by specifying a directory path?

Thanks and Regards,

Dhiraj

Posted: Wed Jun 08, 2005 2:06 am
by ArndW
DHiraj,

the nice thing about the Ascential sdk add-ons is that they are also supplied with the source code. A quick look at the way the program uses the Arg1 (the hash file name) shows that the OPEN command is used.

You could make a copy of this program and put in some logic that checks Arg1 to see if it is a path (i.e. looking for the Unix "/" character in the name) and if so, you use the OPENPATH command instead of OPEN. That way the routine can accept both types of Hash file definitions.