Link to home
Start Free TrialLog in
Avatar of idcanada
idcanada

asked on

Converting Dir's to \..\..\

If Name = "a111a111a111" Then Exit Sub

Hi,
I would like to do the following,
(real sorry for the points)

How do you convert a string with a file path from this C:\Canada\ONT\Ottawa
to this
..\..\
assuming I wanted to add a Link to Canada while the inital HTML file was saved in Ottawa.

Again, sorry for the points.
ASKER CERTIFIED SOLUTION
Avatar of jfayling
jfayling

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of idcanada
idcanada

ASKER

Thats a very good function,
although, would you mind helping me achieve the task asked in the Question?

I have a few problems,
How to read the last array?
(contains the filename)
and convert the rest to \..\..\ ???


Okay,

I can read the last array.