Removing file / folder link after using "Save As..." then "Web Page, complete"

6

1

When you right-click save-as a web page in FF, the page is saved along with a folder containing any associated media that page needs (images, js, etc).

My problem is that I want to reorganise the associated media folder, but wherever I move this folder, the saved .html file is moved as well. ARGH!

I can rename each folder, which breaks the "link" between html file and media folder, but there must be a cleaner way to do it. Does anyone else know?

Mathew

Posted 2010-02-01T11:25:22.520

Reputation: 201

Answers

4

As I discovered, GAThrawn's answer is good if you have Office XP / 2003 installed on your system. If not, you need to jump into the registry;

Go START -> Run, type "regedit" and in the registry editor, browse to;

HKEY_CURRENT_USER -> Software -> Microsoft -> Windows -> CurrentVersion -> Explorer

Right-click in the left panel to create a new DWORD Value. Call it "NoFileFolderConnection" and give it a value of 1.

That's it! If you ever what to turn the linking on again, change NoFileFolderConnection's value to 0.

Alternatively (if you're comfortable applying a registry edit via a downloaded file) you can find a downloadable solution here; http://windowsxp.mvps.org/webpairs.htm.

More information can be found here; http://msdn.microsoft.com/en-us/library/bb776887%28VS.85%29.aspx

Mathew

Posted 2010-02-01T11:25:22.520

Reputation: 201

3

Based on Microsoft's documentation:

Another option which doesn't require registry modifications is simply to rename the HTML file or the folder.

When trying to rename the file/folder, the following message will appear:

Rename Warning! If you rename this file, it will no longer belong to the folder Test_files. To rename it safely, open the file, save it with a new name, and then delete the folder Test_files. Do you want to rename this file anyway?

After approving it, the connection between the html file to the files folder will be removed. Now, you can delete/move the folder. After you've done you can rename the file's name back to its original name.

Ofir Baruch

Posted 2010-02-01T11:25:22.520

Reputation: 181

Simplest solution – nbeuchat – 2017-11-27T17:08:48.853

1

@Pavium is right, this is a Windows setting not a Firefox setting that stops you separating the folder from the file easily. Firefox does have an option to save just the HTML page without the associated media ("Save Page As, then select "Web page, HTML only") but it doesn't sound like that's what you're asking about.

To stop Windows linking the file and folder permanently, open up Windows Explorer (not Internet Explorer), click Tools menu, Options, click the View tab, then scroll about halfway down the Advanced Settings box, you should see a "Managing pairs of Web pages and folders" which is probably set to "Show both parts but manage as a single file" at the moment, you probably want to select "Show both parts and manage them individually".

GAThrawn

Posted 2010-02-01T11:25:22.520

Reputation: 4 176

Thanks, but I can't seem to find the relevant checkbox in the Advanced Settings panel. Are those instructions for winXP? – Mathew – 2010-02-01T15:32:08.567

Yeah I was sitting on a WinXP Pro box at work as I typed that. There isn't a single checkbox, there's 3 "radio" buttons. See this screenshot (from XP) http://www.jard.co.uk/random/su/ManageHTM.PNG

– GAThrawn – 2010-02-01T17:14:09.347

Doh! I must be missing an update, because I've got a big fat nothing where those options are... – Mathew – 2010-02-02T01:40:59.480

That's strange, I've just checked a few XP VMs that I've got lying around with a mixture of SP2 & SP3, IE6 & IE7 and they've all got that option. Are you on a company PC? Do they use Group Policies? It may be that your admin has removed that option using a group policy (I know we hide certain parts of the Connections tab). – GAThrawn – 2010-02-02T11:18:05.533

I might have just tracked down why I dont have the option; http://windowsxp.mvps.org/webpairs.htm

– Mathew – 2010-02-02T11:26:43.547

Ah, sorry, never occurred to me that this option comes with Office! All the machines I looked at that had this option do have either Office XP or 2003, so that could be it. Guess we all learnt something – GAThrawn – 2010-02-02T13:27:10.043

0

I saw something, maybe in Folder Options, which lets you set a general policy for this relationship between HTML file and _files folder.

I'm not sitting in front of Windows at the moment, so I can't check my rather hazy memory.

pavium

Posted 2010-02-01T11:25:22.520

Reputation: 5 956

0

Okay so if I understand correctly. You have a complete web page that you have saved. All the files link to:

href="saved%20website/css_002.css"

and you want to move the folder and have all the links not break?

If so, I think all you have to do is open the .htm file in a text editor like notepad++ do a find and replace with the new path on this part:

saved%20website/

It will replace all of the urls that have broken.

Kelbizzle

Posted 2010-02-01T11:25:22.520

Reputation: 1 808

Nope, you've misunderstood. GAThrawn is spot-on, it just seems that I don't have the right menu option available in XP – Mathew – 2010-02-02T11:21:52.950