Reply
HTML file saved to disk and file path errors
Old 05-26-2006, 09:05 AM HTML file saved to disk and file path errors
Junior Talker

Posts: 4
I created a technical support document on my home pc and then saved it to a disk. The file paths for all my documents and pictures is:

C:\Documents and Settings\Administrator\Desktop\Technical Training\PDF\Vista-15P.pdf">Vista-15P Schematic

when I try to run the disk from a another computer the main folder is D:\Technical Training\training.html this in turn causes all of my other links to be broken. Is there a way to shorten or change the path names to my links so they will work on any computer?

The HTML document is in a folder called Technical Training the the PDF's and Pictures in a files called PDF and Pictures which are in the main folder Technical Training. Any help is appreciated.
jbuchanan is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-26-2006, 10:24 AM Re: HTML file saved to disk and file path errors
LadynRed's Avatar
Super Moderator

Posts: 6,562
Location: Tennessee
Is this HTML file going on a Web server or your personal pc ??

If on a server, you need to put the docs in a folder on the server and link to them using a relative path.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-26-2006, 01:10 PM Re: HTML file saved to disk and file path errors
Junior Talker

Posts: 4
No these disk will be used on local PC's no webpage usage or anything like that. I am just trying to figure out how to make a commom path that will allow them to work on whosever PC they run in on.
jbuchanan is offline
Reply With Quote
View Public Profile
 
Old 05-26-2006, 01:15 PM Re: HTML file saved to disk and file path errors
LadynRed's Avatar
Super Moderator

Posts: 6,562
Location: Tennessee
Ok.. gotcha.. you're going to put these on CD.

If I were going to do this, I would put the html file in one folder and then make a subfolder underneath it for all the documents.

In your html file your links to those documents would be like this:
<a href="documents/xxxxxxxx.pdf">PDF name</a>

Does that help?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-26-2006, 06:54 PM Re: HTML file saved to disk and file path errors
Junior Talker

Posts: 4
I figured it out. my mistake was using the entire file path, unfortunately the file path in my code pointed to drive C: on my pc. I replaced the first half of the file path with two .. (periods) so the only part of the path left was the folder name(Technical Training) then the sub-folder (PDF) and finally the file name (Vista-15P.pdf) so it looks like this now:

<a href="..\Technical Training\PDF\Vista-15P.pdf">Vista-15P Installation Manual</a>

Hope this might help others. Thanks for the responses Ladynred
jbuchanan is offline
Reply With Quote
View Public Profile
 
Old 05-27-2006, 01:09 PM Re: HTML file saved to disk and file path errors
LadynRed's Avatar
Super Moderator

Posts: 6,562
Location: Tennessee
YW
It's called a relative path.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to HTML file saved to disk and file path errors
 

Thread Tools

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14777 seconds with 12 queries