Results 1 to 5 of 5
  1. #1
    Star Lounger Doc666's Avatar
    Join Date
    Jan 2002
    Location
    Caledon, Ontario, Canada
    Posts
    89
    Thanks
    6
    Thanked 0 Times in 0 Posts

    HTML pages (Netscape 4.6 HTML)

    Help.. I have some 10,214 files created with Netscape's Composer Web Page Builder that are hard coded to the IP address of my desk top Server at work... But the plant has now reworked the network and the IP addresses need to change. Is the any easy way to end each of these 10,000 plus pages automatically and update the IP address without doing them one at a time manually???? It has taken some three years to build this local plant site and I don't have that much time to redo them all manually even with a text editor and search and replace function.

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Brantford, Ontario, Canada
    Posts
    2,391
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: HTML pages (Netscape 4.6 HTML)

    I would suggest, as long as the hard coded IP Address hasn't been assigned elsewhere, either of the following would work.

    1. <LI>Re-assign the IP Address to the server containing the HTML, or
      <LI>In a Windows environment, create a "hosts" file (or modify the current one) to point the old IP Address to a new IP Address (or similar in whatever operating system you're using).
    I'm just guessing at the second one. I know it would work if you had used a name for the server, but by using an IP Address, I don't know what happens trying that.
    Christopher Baldrey

  3. #3
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: HTML pages (Netscape 4.6 HTML)

    <P ID="edit" class=small>(Edited by bigaldoc on 23-Jan-03 18:11. To add more detail)</P>I'm outta my league here, being an amateur when it comes to HTML, but aren't there editors that will do global search and replace on many files?

    {Edited}

    The reason I said what I did is that I use HotDogPro as my HTML editor and like it a lot. It's not cheap ($100) but I've had it for quite a spell. They have a $20 plugin (extension) for multiple file search and replace that's advertised to be good for editing an entire web site. I would think there must be others out there.

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: HTML pages (Netscape 4.6 HTML)

    Only 10,000?

    If you were to ask a Unix user, you'd be pointed toward the techniques described in this page. You can download a Perl interpreter for Windows (ActivePerl for Linux, Solaris or Windows <img src=/S/free.gif border=0 alt=free width=30 height=15> from ActiveState). This might work for you, although I've never tried it.

    I think you also could use VBScript, but I haven't searched for "ready-to-run" examples. You would need to use the FileSystemObject to traverse the directory tree, and the RegExp object to find and replace the IP address. If you spend some time combing the Lounge, you will find both parts of the puzzle. Kevin recently posted a solution that combed through a bunch of files recursively. I have posted solutions that supply a WildReplace function that simplifies use of the RegExp object. The latter was targeted toward VBA, but revising it for VBScript should be very straightforward.

    Of course, whatever you do, make a backup first!

  5. #5
    Star Lounger Doc666's Avatar
    Join Date
    Jan 2002
    Location
    Caledon, Ontario, Canada
    Posts
    89
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: HTML pages (Netscape 4.6 HTML)

    Thaks for all the help and suggestions. I have found a solution "Advanced Find & Replace" by Abacre.com. It's the best Search and replace application I have seen in years. Searches htm * html files as well as many others in local and sub directories. It's easy to use and fast. My problem has now been resolved and the fix was almost too easy. Once again thanks for all the help and suggestions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •