FP2000 Import Changes Filename Case?!?!?!

P

Pete

I've just run into this problem after importing a web with 900 files. Most
links in those files are now broken.

Obviously I cannot fix this manually. Is there a way to automate it? And a
way to stop FP doing this?
 
T

Thomas A. Rowe

The problem is that under Windows the case of the filename doesn't matter,
so unless you know that your site will be hosted on a Windows IIS server,
you should always use lowercase file and folder names without any spaces.

So in order the change the case, and have it stick, you would have to first
rename the file /folder to a different name, such as add a 1 to the name,
then renamed it a second time with the name you want.

Also if the remote site had the FP extensions, you should have open it
directly in FP, and then published to your local machine, not via the import
function.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
P

Pete

The problem is that under Windows the case of the filename doesn't matter,
so unless you know that your site will be hosted on a Windows IIS server,
you should always use lowercase file and folder names without any spaces.

So in order the change the case, and have it stick, you would have to first
rename the file /folder to a different name, such as add a 1 to the name,
then renamed it a second time with the name you want.

Also if the remote site had the FP extensions, you should have open it
directly in FP, and then published to your local machine, not via the import
function.

I'm sorry Thomas, but that doesn't really answer my question.

It's not just the filenames that are now wrong, but the links in the 900
files. When FP changed the filename case, it didn't change the case of the
links, like you'd expect it to do. Rather than *creating* my web, FP
*destroyed* it. There's no way I'm going to hand edit those links, so I
need a tool or work-around to automate it, or some way to get FP to behave
itself.

Always using lowercase is easy to say, but not so easy in practice. Digital
cameras typically give you uppercase filenames, and some photo editors
default to mixed case or uppercase extensions. There's nothing wrong with
mixed- or upper-case filenames on web sites, as long as the links match the
filenames. I'd always use lowercase on URLs that people type, but for
internal files it really doesn't matter. FP really shouldn't be making that
decision for me, especially when it breaks everything in the process.

I used the import function because my ISP's personal web page server
doesn't have FP extensions. (And I have a dial-up connection. I'd rather
exchange files with the server once rather than 3 times, thank you very
much!).
 
T

Thomas A. Rowe

Pete,

My reply does answer your question, just not what you want to hear, and
explains the issue and how to solve the issue.

The only reason this is an issue is because your site is hosted on a
Unix/Linux server with is case sensitive, this is not an issue for those of
us that host on a Windows IIS server. The OS is what actually changed your
file name, not FP.

The only way to correct this, is the method I gave you, which when you
change the file names from within FP, FP will then update the hyperlinks.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
P

Pete

Pete,

My reply does answer your question, just not what you want to hear, and
explains the issue and how to solve the issue.

The only reason this is an issue is because your site is hosted on a
Unix/Linux server with is case sensitive, this is not an issue for those of
us that host on a Windows IIS server. The OS is what actually changed your
file name, not FP.

The only way to correct this, is the method I gave you, which when you
change the file names from within FP, FP will then update the hyperlinks.

Thomas:

I'm not trying to pick an argument, but...

1. I did ask for a solution that did NOT require manually fixing every
filename.

2. I don't understand your statement "The OS is what actually changed your
file name, not FP." If I use Windows Explorer to copy a file that FP
re-cased (P4265957.JPG), the filename case is *not* changed. If I write a
trivial program to call the Windows API function CopyFile and do the same
thing, the filename case is again *not* changed. I haven't encountered many
Windows apps where filename case is arbitrarily changed.

3. There are other solutions to the problem, but none of them is quick. I
could locate or write a utility (or FP add-in) to go through the html files
looking for links and fix them, or I could regenerate the original files
with lowercase filenames. I was hoping that someone had run into this
before and had come up with a 1-minute fix. Even a hidden menu item in FP
itself!

Pete
 
T

Thomas A. Rowe

Pete, see below.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================


Pete said:
hyperlinks.

Thomas:

I'm not trying to pick an argument, but...

1. I did ask for a solution that did NOT require manually fixing every
filename.

Ok, see if the latest version of Jimco CaseChanger will do this automtically
for you:
http://www.jimcoaddins.com/addins.aspx
2. I don't understand your statement "The OS is what actually changed your
file name, not FP." If I use Windows Explorer to copy a file that FP
re-cased (P4265957.JPG), the filename case is *not* changed. If I write a
trivial program to call the Windows API function CopyFile and do the same
thing, the filename case is again *not* changed. I haven't encountered many
Windows apps where filename case is arbitrarily changed.

Look at how you have Windows setup to handle filename. In the DOS part of
the OS, all filename are stored as Uppercase. FP doesn't change the case of
file or folder names, I am have using FP since FP98, and currently use
FP2000 under Windows XP Home for all development, and not once has FP ever
changed the case of any folder or filename.
3. There are other solutions to the problem, but none of them is quick. I
could locate or write a utility (or FP add-in) to go through the html files
looking for links and fix them, or I could regenerate the original files
with lowercase filenames. I was hoping that someone had run into this
before and had come up with a 1-minute fix. Even a hidden menu item in FP
itself!

See #1 above.
 
Top