You're back to this logic then... Count the number of ".." and chop that number of elements off the end.
Then stuff everything AFTER the last ".."s onto the end. There are dozens of ways to do this that would blow up your logic -- I suspect you'll get to find them one by one. ;-) David W. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > David Wolverton > Sent: Monday, March 12, 2007 3:49 PM > To: [email protected] > Subject: RE: [U2] Help with File Pointers > > 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 ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
