Did I say it was guaranteed to be correct? No, in fact in the very next 
breath I promoted another solution as being more robust. Note that none of 
the solutions mentioned are guaranteed to work; e.g. the CC installation 
allows the default installation path to be changed, so depending on 
"C:/Program Files/..." has a fatal flaw too. And it's far more likely a 
user will change the installation dir than that Progra~1 will not be 
Program Files. Which is why I said that, on windows, depending on the PATH 
is generally the most robust solution even though it doesn't feel that way 
to most people.

David Boyce

At 02:38 PM 7/28/00 -0400, Laine Stump wrote:
>David Boyce writes:
> > For the record, there's one option you haven't discussed:
> >
> > CLEARTOOL := C:/Progra~1/Rational/ClearCase/bin/cleartool.exe
>
>That can't be guaranteed to be correct across multiple machines. If
>another "long" filename beginning with "Progra" was created on the disk
>prior to the creation of "Program Files", *it* will be PROGRA~1, and
>"Program Files" will be "PROGRA~2" (or ~3 or ~4). Obviously in this case
>that's not very likely (since the Program Files directory is created
>during the initial Windows Install), but in the general case it is much
>more likely to happen.

Reply via email to