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!

Saved Webfolder in DOS Now get this...!!!

Status
Not open for further replies.

FilthyCherry

Technical User
Aug 21, 2002
13
CA
Had a nasty accident with Partition Magic and lost access to the drive with my webfolder, so I saved the folder to a different drive via the DOS recovery disk from the c: drive to my d: drive. Using a second pc from my network I then transfered the files.
The horror starts when I find all the files which were .html have now been changed to .HTM and not only were the names truncated to 8 letters, the .jpg files were totally renamed.
Now I'm opening the HTM files in IE 6.0 and manually changing the extensions to .html, so that my previous code will work. But now when I view the source code of these .html pages, the code is completely re-written!! Also when I save .jpg files in IE, it creates a sub-folder with the jpg in it instead of in the root directory it was told to save to.
Please Please HELP!!
 
Hi,

You can change all those .HTM extensions via a DOS wildcard.

Enter DOS and goto a folder and then type:
REN *.HTM *.html

Do that in each folder. That will speed that process up for you.

How is your code re-writen? Can you explain that or show an example?
relax.gif

 
Thanks Spyderix, those old DOS commands come in handy. I'd forgotten that one.
This is wierd though! Both of my computers have XP pro for an OS. On the one, if I rename the .jpg file it renames it inside a separate subfolder called name_files as well as in the root folder. If I delete the .jpg in the subfolder it deletes the one in the root folder as well. I've never seen such a thing. This doesn't happen on the 2nd pc with XP pro, so it must be a windows thing, but the folder options are the same for both...

The code changes as follows:

THIS IS THE ORIGINAL HAND CODE:
<html>
<head>
<title>Warp Cabinet</title>

</head>


<body bgcolor=&quot;#000000&quot; text=&quot;#EDCF94&quot; alink=&quot;#312257&quot; vlink=&quot;#336699&quot; font=&quot;verdana&quot;>
<table align=&quot;center&quot; height=&quot;500&quot; width=&quot;790&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tr>
<td valign=&quot;middle&quot; align=&quot;left&quot; rowspan=&quot;3&quot;>
<img src=&quot;warp.jpg&quot;>
</td>

<td valign=&quot;bottom&quot; align=&quot;center&quot; colspan=&quot;4&quot;>
<img src=&quot;warpcabinet.jpg&quot;>
</td>
</tr>
<tr>

<td div align=&quot;center&quot; valign=&quot;middle&quot; colspan=&quot;4&quot;>

<h5>'text'.</h5></div>

</td>
</tr>
<tr>
<td valign=&quot;middle&quot; align=&quot;center&quot;>
<a href=&quot;bigwtop.html&quot; target=&quot;resource window&quot;>
<img src=&quot;thumbwtop.jpg&quot; border=&quot;0&quot; alt=&quot;Central section&quot;></a>
</td>
<td valign=&quot;middle&quot; align=&quot;center&quot;>
<a href=&quot;bigweye.html&quot; target=&quot;resource window&quot;>
<img src=&quot;thumbweye.jpg&quot; border=&quot;0&quot; alt=&quot;Warp powered up&quot;></a>
</td>
<td valign=&quot;middle&quot; align=&quot;center&quot;>
<a href=&quot;bigwlight.html&quot; target=&quot;resource window&quot;>
<img src=&quot;thumbwlight.jpg&quot; border=&quot;0&quot; alt=&quot;Detail of light fixture&quot;></a>
</td>
<td valign=&quot;middle&quot; align=&quot;center&quot;>
<a href=&quot;bigwopen.html&quot; target=&quot;resource window&quot;>
<img src=&quot;thumbwopen.jpg&quot; border=&quot;0&quot; alt=&quot;Fully loaded&quot;></a>
</td>
</tr>
<tr>
<td colspan=&quot;1&quot; valign=&quot;top&quot; align=&quot;center&quot; height=&quot;40&quot;>
<h6>height 34&quot; &nbsp;&nbsp; width 66&quot; &nbsp;&nbsp; depth 19&quot; &nbsp;&nbsp; weight 250lbs.</h6>
</td>

<td valign=&quot;bottom&quot; align=&quot;right&quot; colspan=&quot;2&quot;>
<a href=&quot;scarab.html&quot;>
<img src=&quot;left.jpg&quot; alt=&quot;Scarab Cabinet&quot; border=&quot;0&quot;></a>
</td>
<td valign=&quot;bottom&quot; align=&quot;left&quot; colspan=&quot;2&quot;>
<a href=&quot;quetz.html&quot;>
<img src=&quot;right.jpg&quot; alt=&quot;Quetzalcoatl Cabinet&quot; border=&quot;0&quot;></a>
</td>
</tr>

</table>
</font>
</body>
</html>


THIS IS THE CHANGED CODE:


<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<!-- saved from url=(0062)file://\\FILTHYCHERRY\SharedDocs\GEORGE\SafeKeeping\WARP~1.HTM -->
<HTML><HEAD><TITLE>Warp Cabinet</TITLE>
<META http-equiv=Content-Type content=&quot;text/html; charset=windows-1252&quot;>
<META content=&quot;MSHTML 6.00.2800.1126&quot; name=GENERATOR></HEAD>
<BODY text=#edcf94 vLink=#336699 aLink=#312257 bgColor=#000000 font=&quot;verdana&quot;>
<TABLE height=500 cellSpacing=0 cellPadding=0 width=790 align=center border=0>
<TBODY>
<TR>
<TD vAlign=center align=left rowSpan=3><IMG src=&quot;&quot;> </TD>
<TD vAlign=bottom align=middle colSpan=4><IMG src=&quot;&quot;> </TD></TR>
<TR>
<TD vAlign=center align=middle colSpan=4 div>
<H5>'text'.</H5>
<DIV></DIV></TD></TR>
<TR>
<TD vAlign=center align=middle><A
href=&quot;file://FILTHYCHERRY/SharedDocs/GEORGE/SafeKeeping/bigwtop.html&quot;
target=&quot;resource window&quot;><IMG alt=&quot;Central section&quot; src=&quot;&quot; border=0></A>
</TD>
<TD vAlign=center align=middle><A
href=&quot;file://FILTHYCHERRY/SharedDocs/GEORGE/SafeKeeping/bigweye.html&quot;
target=&quot;resource window&quot;><IMG alt=&quot;Warp powered up&quot; src=&quot;&quot; border=0></A>
</TD>
<TD vAlign=center align=middle><A
href=&quot;file://FILTHYCHERRY/SharedDocs/GEORGE/SafeKeeping/bigwlight.html&quot;
target=&quot;resource window&quot;><IMG alt=&quot;Detail of light fixture&quot; src=&quot;&quot;
border=0></A> </TD>
<TD vAlign=center align=middle><A
href=&quot;file://FILTHYCHERRY/SharedDocs/GEORGE/SafeKeeping/bigwopen.html&quot;
target=&quot;resource window&quot;><IMG alt=&quot;Fully loaded&quot; src=&quot;&quot; border=0></A>
</TD></TR>
<TR>
<TD vAlign=top align=middle height=40>
<H6>height 34&quot; &nbsp;&nbsp; width 66&quot; &nbsp;&nbsp; depth 19&quot; &nbsp;&nbsp;
weight 250lbs.</H6></TD>
<TD vAlign=bottom align=right colSpan=2><A
href=&quot;file://FILTHYCHERRY/SharedDocs/GEORGE/SafeKeeping/scarab.html&quot;><IMG
alt=&quot;Scarab Cabinet&quot; src=&quot;&quot; border=0></A> </TD>
<TD vAlign=bottom align=left colSpan=2><A
href=&quot;file://FILTHYCHERRY/SharedDocs/GEORGE/SafeKeeping/quetz.html&quot;><IMG
alt=&quot;Quetzalcoatl Cabinet&quot; src=&quot;&quot; border=0></A>
</TD></TR></TBODY></TABLE></FONT></BODY></HTML>


Note the SRC=&quot;&quot; where it took out the actual source.
Can I manually change an .HTM to a .html in IE?
Thanks...
 
Hi,

I have no idea why it would do that, but your code isn't really altered that much. It has added in <TBODY></TBODY> and removed the &quot;&quot;'s and changed the paths to the links and pics, as well as the indenting. You may have to just go in manually and remove all extraneous code and re-path everything.

Also I see a prob with your original code too:
<td div align=&quot;center&quot; valign=&quot;middle&quot; colspan=&quot;4&quot;>

<h5>'text'.</h5></div>


That should look like this:
<td valign=&quot;middle&quot; colspan=&quot;4&quot;>

<div align=&quot;center&quot;><h5>'text'.</h5></div>


Hope this helps!
relax.gif

 
Thanks for the heads up on the code Spyderix. I suppose it's just a work around, but saving each file to a new folder works fine the first time, but saving a file to it's original folder still creates these subfolders. It's the stupidest thing I've ever seen...
 
Did you use Front Page to do this? Or are you hand coding?
 
It was hand coded. The classes I took wouldn't let you use frontpage or Dreamweaver.
 
Sounds almost like some sort opf &quot;alias&quot; type of thing. Almost like a shortcut and not really the file. Never seen anything like that before.

I would say uninstall and reinstall the program first. Is it just when you save from IE? Or from other apps?

If it is across the board, the kernal may have gotten wrecked or some registry items. If that's the case...format. Start over. Have a beer.
 
It's just too wierd, but I tried to save another file, and it only does this with jpegs, but I was presented with a dialog box that told me renaming the file was no longer going to associate it with the name_file folder, so I checked the do not show box, and now I can change the names ad nauseum... Don't know why it asked me now and not earlier. Could have saved me some trouble.
Isn't that just wierd? I suppose it's like logons to places that windows sometimes remembers the cookie and sometimes not...
I dunno.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top