Coast Line
asked on
replacing some extension in all files
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
Thanks
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
Thanks
ASKER
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
ie:
<a href="somelink.Cfm"> to <a href="somelink.cfm">
or are you meaning extensions in the OS
ie:
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 http://www.cyberciti.biz/tips/renaming-multiple-files-at-a-shell-prompt.html