qualifier
Bruce Easton
bruce at stn.com
Tue Jul 31 13:03:31 PDT 2007
Jean-Pierre A. Radley wrote Tuesday, July 31, 2007 3:18 PM:
>
> So far as I know, the only way to add qualified files is to run ddefine
> for each database.
>
> When there are more that a handful of them, this gets real tiring.
>
> Has anyone concocted a script to add a qualifier to every database?
>
> --
> JP
I don't have one, JP. I think creating a script to create the
necessary parts for filepro to see the file qualifier properly
should be simple, something like (pseudo-shell):
( cd $newdir
> key$qual
> data$qual
echo $qual >> qualify
chown filepro *$qual ) taking input from an ls -d command
but one would have to be careful if you have non-filepro files
in that dir or junk files or directories.
I suppose this could be expanded to list the current unqualified
indexes in the directory and then copy them as well. They
would have to be initialized later.
If you used a method of actually trying to push the keystrokes into
ddefine, I would think you might have a problem putting the
cursor at the bottom of an 'already assigned' list of qualifiers, but
maybe there is a way - it would be nice if you could because
then filepro would take care of making dupe indexes. It would
probably still be best to precede this type of method with
a check that the file is valid and not a non-filepro file.
Bruce
Bruce Easton
STN, Inc.
More information about the Filepro-list
mailing list