|
-
Aug 8th, 2002, 01:09 PM
#1
Thread Starter
Member
Replace all files in directory/subdirectory recursive
Hello.. I am moving my website (medium size ~50-60 megs) to a new server. However I am going to maintain my old site for a while.
What I want to do is write some code that will start at a particular directory, and replace each file (FILEX.html) with a new .html file that reads:
this page has moved, you can find it at www.newsite.com/FILEX.html
.. What is the best way to go through the starting directory, its subs, their subs, etc recursivly?
I had some problems doing this with an MP3 indexer i was building b/c I couldn't get it to recurse.. ( i think i was using the DIR() command, and it was global so wouldn't hold the variable for a recursion????)
any help would be appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|