Go Back   PCMech Forums > General & Off Topic > General Discussion

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 11-30-2004, 07:40 PM   #1
Member (8 bit)
 
Star-Com's Avatar
 
Join Date: Feb 2004
Posts: 192
How to Rename an HTML Document?

When saving a web page, say, in My Documents, the procedure is :

File-Save As..., File name, Save as type (htm,html) etc.

What appears in My Documents then, is a file (an HTML Document which opens with Internet Explorer) and a folder that comes along with it and has the same Name.

Q. How can i Rename the file and still belong to its corresponding folder, without losing any data from the HTML Document (file), like pictures or maybe animations?
__________________
Operating System : Windows XP Professional Edition, [Service Pack 3]
Web Browser : Internet Explorer 8


When you are courting a nice girl an hour seems like a second.
When you sit on a red-hot cinder a second seems like an hour. That's relativity.

Albert Einstein

Last edited by Star-Com; 11-30-2004 at 07:47 PM.
Star-Com is offline   Reply With Quote
Old 11-30-2004, 09:29 PM   #2
Member (9 bit)
 
HyperTF's Avatar
 
Join Date: Sep 2004
Location: Victoria, Australia
Posts: 418
I think it is in automatic code that your html editor is generating that the links are made as that folder is for supporting files (pics etc), you might have to open up your html editor again and go through the same procedure (Save as) and save it under a new file name.... probably what you will find though it will create a new accompany folder with the new name. Hope this helps... oh by the way, which html editor/web page creator are you using?
HyperTF is offline   Reply With Quote
Old 11-30-2004, 09:36 PM   #3
Moderator
Staff
Premium Member
 
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
You won't loose any data unless the user specifically presses the delete button (or some unusual circumstance). The thing you should be concerned about are broken links. Every HTML file has a source code to which a specific file name within a specific directory, if any, is called or defined.

So this is what you do. Check the name of the old file. Then, rename it. Then go into the HTML document which calls for the documents inside the folder. Press Control+H, presuming you are doing this all in a text editor or some standard program, and type in the old file name as the one you find, and replace with the new file name. That should do it.

kram
__________________
"For today, goodbye. For tomorrow, good luck. And forever, Go Blue!"
University of Michigan President Mary Sue Coleman
kram 2.0 is offline   Reply With Quote
Old 11-30-2004, 09:58 PM   #4
Member (9 bit)
 
HyperTF's Avatar
 
Join Date: Sep 2004
Location: Victoria, Australia
Posts: 418
Yeah, that is the better way, i am too used to taking short cuts... must get out of that habit!
HyperTF is offline   Reply With Quote
Old 11-30-2004, 10:18 PM   #5
Foldin' For PCMech!
 
enhanced08's Avatar
 
Join Date: Jun 2003
Location: back home in McHenry MD
Posts: 1,650
Send a message via AIM to enhanced08 Send a message via MSN to enhanced08
when i do any HTML i just simply use notepad. its basic, gets the job done and its free!

just remember when you save it to put .htm or .html at the end of the file!
__________________
Eric
Help save lives! Click Here
AMD 4800+ X2 @ 2750Mhz (250 x 11) | DFI LanParty UT CFX3200 | 2GB Mushkin pc4000 3-3-2-8 1:1
Sapphire X1900GT 256MB | (2) 150GB Raptors RAID0 | WD 320GB
enhanced08 is offline   Reply With Quote
Old 11-30-2004, 10:31 PM   #6
Member (8 bit)
 
Star-Com's Avatar
 
Join Date: Feb 2004
Posts: 192
Quote:
Originally Posted by enhanced08dotcom
when i do any HTML i just simply use notepad. its basic, gets the job done and its free!

just remember when you save it to put .htm or .html at the end of the file!

How do you mean?
To open the HTML Document using Notepad and then Save As... ?
Star-Com is offline   Reply With Quote
Old 11-30-2004, 10:35 PM   #7
Foldin' For PCMech!
 
enhanced08's Avatar
 
Join Date: Jun 2003
Location: back home in McHenry MD
Posts: 1,650
Send a message via AIM to enhanced08 Send a message via MSN to enhanced08
no, well that might work, but what i meant was open a new document in notepad and type the HTML file there. then hit "save as" and type a name followed by .htm or .html
for example index.htm or index.html
enhanced08 is offline   Reply With Quote
Old 11-30-2004, 10:38 PM   #8
Moderator
Staff
Premium Member
 
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
Notepad is a universal text writer. It can write in many extensions - like .txt, .htm, .html., .js, etc. Be sure to specify ".html" at the end of the file - .html is more standard than .htm IMO.

kram
kram 2.0 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:19 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0