Scott and Phil,
Sorry for the delay in thanking you for your help with this. It
turned out to be a simple thing (don't they all ;-) It seems you do
need the final backslash, and you don't need the "quote & ... &
quote". My problem was in limiting the text string to "word 1 to
-2", which wasn't required for what I was trying to do. Anyway, you
definitely CAN pass the registry key info in the form of a variable!
Thanks again.
Craig
>From: Scott Raney <[EMAIL PROTECTED]>
>Seems to me you're working too hard here: the stuff with the "quote"
>constants is not required...
> Regards,
> Scott
>From: Phil Davis <[EMAIL PROTECTED]>
>
>Did you try it without the final backslash (after ...command\")? That
>can make a difference.
>Regards,
>Phil
>
>
>Craig Spooner wrote:
> >
> > Greetings all,
> >
> > Does anyone know why I can't pass a registry key in the form of a
> > variable to the queryRegistry function.
> >
> > It seems like this should work, but it doesn't:
> >
> > put quote & \
> > "hkey_local_machine\software\classes\http\shell\open\command\" & \
> > quote into tKey
> >
> put queryRegistry(tKey)
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.