replacing some extension in all files

Posted on 2012-09-07
Last Modified: 2012-09-27
I have a code which is migrated to ColdFusion 10, now ColdFusion 10 does not like .Cfm file and it will not load the Page, i have already filed the BUG related to this, but now i have to search whole my website for the .Cfm extension and replace wit .cfm extension, The website has around 100,000 files. it is will cumbersome to look into each file and then do the replacement.

is there neat and clean way of recursing search of the this thing and replace with my .cfm, i know normal search will do.
btw i want to create a page to list down all effecting files and show the changes on the same pages. in CF how to do this

Question by:myselfrandhawa
    LVL 36

    Expert Comment

    global search & replace in eclipse does it nicely. there are probably other advanced text editors out there that would do it as well.

    btw - CF won't care about case but the OS does - you're on a *nix server is assume.?

    btw = you are talking about changing links within cfm files

    <a href="somelink.Cfm"> to <a href="somelink.cfm">

    or are you meaning extensions in the OS


    C:\temp\somelink.Cfm > C:\temp\somelink.cfm

    or both?

    if you need to do the OS change you could do it cfdirectory or using *nix OS tools
    LVL 15

    Author Comment

    hi sid,

    i am on windows

    cf10 i do not know but does not like .Cfm but it likes.cfm extention, yes i am looking for a script to change the extensions not the filenames
    LVL 36

    Accepted Solution


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
    I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video discusses moving either the default database or any database to a new volume.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now