AnsweredAssumed Answered

VRf-VEE_ID

Question asked by VRFuser on Jul 11, 1996
from: Greg Goebel / HP-MXD
      gvg@lvld.hp.com / 970-679-2305 / FAX 970-679-5971
to:   Stan Bischof / VRf
date: Friday, 12 July 1996 1428 MDT

> I have a need to pass variables into VEE and have been able to with
> little trouble in HP-UX but am a newcomer to PC's so could use
> some guidance.
>
> In short, inside VEE I need to programmatically figure out where
> VEE is installed. In Unix the script that initiates VEE first
> sets a variable VEEROOT to the appropriate directory and then
> in VEE I use the Execute Program to access this variable and return
> it to VEE. This works fine and is pretty much foolproof since
> the unix call to initiate VEE is $VEEROOT/veetest, so that
> VEEROOT is always valid.
>
> Well now I'm looking at Windows and don't see how to proceed. VEE
> doesn't start from a script and even if it did the Execute Program
> can't return values from the external program. I have this
> vague idea of writing an external program which somehow figures
> this out and writes the information to a file, then reading in the
> file inside VEE and continuing. However I _don't_ see how an external
> program can figure out where VEE resides since while I could
> look for VEE, there may be 2 or more versions installed and I see no
> way to see which one I am actually accessing.
>
> SO- from inside VEE- how can I tell where VEE is installed in a Windows
> environment?
>
> This is ciritical for me since my only other choice is hard-coding this
> information in my VEE program- in which case my program is no longer
> portable, which is a requirement.
>
> thanks for any hints

Hi Stan:

I talked to the lab folks ... there's no formal way to do this, the only
things available are kluges, like doing an EXECUTE PROGRAM on a compiled
program that checks the Win95 registery or the manual methods mentioned
by other VRf contributors.

If you have other questions, let us know.

[<>] regards -- gvg

Outcomes