URL relativizer

I have a tree of HTML documents linked in an 'absolute' manner. Is there some application that could help me to relativize links in HTMLs?

e.g: index.htm is located in c:\root and contains link to page1.htm as c:\root\pages\page1.htm
I would like to transform this link into ./pages/page1.htm
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KennyIT Application ExecutiveCommented:
A PERL script could probably be written to do the job. Or even PASCAL. Are you a programmer?
milicicdAuthor Commented:
I would prefer some finished program doing that. Can Dreamweaver fix it?
2 step process.
1. Search for "c:\root" and replace with "" (nothing)
2. search for "\" and replace with "/"
(I as long as you don't use c: or \ elsewhere)

For mulitple file replacement use a text editor such as ultra edit.

Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

the best way to get this done is using asp
mystring = replace(mystring,"c:\root","")
mystring = replace(mystring,"\","/")
If you are talking about replacing these strings "manually", i.e. doing a pass through the file, looking for the string, and replacing it, there are several editors, e.g., Visual InterDev and HomeSite, which will do this for multiple files.

I wouldn't be surprised if Dreamweaver could do it, but I can't verify that.

I know that using HomeSite, you could replace:

"c:\root\pages\" with "./pages/" in all instances in multiple files.

The only thing you need to be REAL careful of is that the strings are exact and that there are no instances you DON'T want changed (like references in the HTML text of the files, etc.)

VID will find all the instances and allow you to verify that you want to change them individually.

Ultra edit will also do this for you (shareware).
BlackWidow can do this for you
irenata - does that justify the answer and hence the points? Surely a comment at the most? That way milicicd can choose who (if anyone) deserves the points! And this also means that the question will still receive the attension of other experts who might otherwise ignore a locked question.

Just my 2 cents. (In the words of Kent Brockman)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.