Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Extension Changing Tool 1

Status
Not open for further replies.

carpediem79

Technical User
Aug 2, 2005
52
US
Does anyone know of a good tool that will allow me to change all of the extensions on a website? It has hundreds, if not thousands, of pages. Say I need to change them all from .htm to .shtml or .cf

Thanks!!
 
If you run windows you can use the command line REN command to rename files. Go to a command window and try this. First line changes to the appropriate folder (cd=change directory). Second line renames (*.htm=all files with htm extension)
Code:
cd\ "my documents\inetpub\[URL unfurl="true"]wwwroot\website"[/URL]
ren *.htm *.html


___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
...and you also realise that changing the extensions of the files won't change all the links from page to page within the content of those files.

Let's take a step back - why do you want to change your file extensions?

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
i need to change the pages from .htm/.html to .cfm in order to process the server side include code on a Windows/IIS server. the code we use on Linux/Apache won't work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top