How do I open a cached HTML file in an editor???
Posted on 1999-11-29
Hello everybody! Been a while since I have dropped by. Anyway, I got a good one this time (at least it seems rough to me :). I have a notepad replacement I wrote a while back (mostly for my own use, just like notepad but shows the current row and col positions and a couple of other things I missed). This is the problem. When running IE on NT, if you go to the "view" menu and click "source", notepad opens with the contents of the current html file. If I try to use my "replacement" notepad, it comes back with a "file not found" message. I have been trying to debug this using a variety of tools, and basically I am stumped. The file-name that notepad is actually opening doesnt really exist! It is actually opening another file (with a LOOOONG screwy name, like most of the files in the temporary internet files folder) but calling it by a different name. If you right click on the long screwy file in explorer, and view the properties, one of the properties is "cache name", which is the name that notepad opens it as. I am guessing this is some kind of COM thing, like a compound document of something, but I am not sure. If I try and open the file in my program by passing it the same path that notepad uses (after notepad has done it) it works fine.....? So what is going on here. Is notepad actually CREATING the file before opening it? Or is it somehow converting the screwy path that IE passes it to something else? I am totally stumped, and would really like to fix this as I would really like to use my editor for this task. Any help would be GREATLY appreciated. I am offering LOTS of points so only serious comments please.