If you have the current 'path' then ".." is always the path before...

So if you are sitting in c:\IBM\ACCOUNTS\TESTIT

And the path in the VOC is to ..\..\bin

You can 'peel back' on each ".." to the layer before:

So ..\..\bin would turn

C:\IBM\ACCOUNTS\TESTIT   into
C:\IBM\bin

You would count the number of ".."s and chop that number of segments off the
end of the current path... Two ".."s peel off 2 segments.

Then stick whatever is after the ".."s on the end...

As for the @UDTHOME and the like - you'd want to do a 'swap' to get those to
work.  And I'd likely 'fix' the path \ or / to be whichever you'd rather
work with since they behave the same in UniData...

DW

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Susan Joslyn
> Sent: Monday, March 12, 2007 3:23 PM
> To: [EMAIL PROTECTED]
> Cc: [email protected]
> Subject: RE: [U2] Help with File Pointers
> 
> Karl,
> Thanks again. It is clear -- I think.  But unless I'm still 
> misunderstanding, you are giving me tools that I could use 
> with my fingers on a keyboard and I'm wanting to build a 
> program smart enough to look at static file pointers 
> (fpointers) and resolve them to determine if they are 
> pointing to the same place. 
> 
> Susan
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to