-----Original Message-----
Copy them to another folder with short names, something like this air
code, which will require a reference (Tools|References) to the Microsoft
Scripting Runtime library
Sub CopyWShortNames
Dim fso As Scripting.FileSystemObject
Dim foSrc As Scripting.Folder
Dim F As Scripting.File
Dim strDest As String
Set fso = CreateObject("Scripting.FileSystemObject")
Set foSrc = fso.GetFolder("D:\folder\folder")
strDest = "D:\folder\otherfolder\"
For Each F In foSrc.Files
If UCase(Right(F.Name, 4)) = ".DBF" Then
F.Copy strDest & F.ShortName
End If
Next
Set F = Nothing
Set foSrc = Nothing
Set fso = Nothing
End Sub
I think I discovered the problem. The file name is more
than 8 characters. I renamed one down to 8 characters and
it loaded. Well....I have over 300 files to load. Any
suggestions?
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
.