Reverse Publish "You specified identical destination file names" - 6000 files - How to FInd the Dupl

K

Kevin

My website has over 6000 files in it, with many, many directories and
sub-dir's. Trying to publish it to my hard drive for backup and I am
getting the dreaded error.

I realize that if I have 2 files: "Index.HTM" and "Index.htm" that
this will cause the error message.

But I cannot figure out how to find the filenames it is complaining
about. I tried this:

- did a report with ALL Files - and selected all of them and changed
half of them to "Do Not Publish" - same error !!! Then 3/4 of them,
etc until ALL of them were flagged "So Not Publish" - same error !!

Also - nowhere does the problem descriptions say whether the duplicate
filenames have to be in the same directory - but I assume they must
be. That makes my search easier because I have tons of duplicate
filenames in different folders.

I read that an apostrophe can cause this? (i.e. "coin's.jpg" Is that
true? But I cannot find any apostrophe's either.

I am completely stumped. That last think I am trying - and it will
take forever - is to copy the entire site to my hard drive using an
FTP program that does Stop and complain when it tries to copy a
duplicate filename to my hard drive. I will make a note of each
complaint. I have been running it for an hour and it is atill at 1%
done. This "should work" and if it does not then there is something
else wrong. Which I already am worried about since the "flag all
files DO NOT PUBLISH" trick did not work.
 
C

Christoph Schneegans

Kevin said:
I realize that if I have 2 files: "Index.HTM" and "Index.htm" that
this will cause the error message.

Correct. This macro should print filenames that only differ in case to the
"Immediate Window" in the Visual Basic Editor:

Sub FindFilenamesThatOnlyDifferInCase()

Dim col As New Collection
Dim wf As WebFile
For Each wf In ActiveWeb.AllFiles
Dim url As String
url = LCase(wf.url)

On Error GoTo DuplicateFound
col.Add Nothing, LCase(url)
On Error GoTo 0

Next

Exit Sub

DuplicateFound:
Debug.Print url
Resume Next

End Sub

See
<http://msdn.microsoft.com/library/e...dc_fpAutomatingRepetitiveTasks.asp?frame=true>
for an introduction to FrontPage VBA macros.

Be sure to run "Tools > Recalculate Hyperlinks..." after you have
renamed all files.
Also - nowhere does the problem descriptions say whether the duplicate
filenames have to be in the same directory - but I assume they must
be.
Yes.

I read that an apostrophe can cause this?

I don't think so. "coin's.jpg" is a valid filename in NTFS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top