• HTML pages (Netscape 4.6 HTML)

    Author
    Topic
    #382228

    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.

    Viewing 3 reply threads
    Author
    Replies
    • #647291

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

      1. Re-assign the IP Address to the server containing the HTML, or
      2. 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.

    • #647402

      (Edited by bigaldoc on 23-Jan-03 18:11. To add more detail)

      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.

    • #647897

      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 free 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!

    • #648017

      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.

    Viewing 3 reply threads
    Reply To: HTML pages (Netscape 4.6 HTML)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: