I am running Visual Basic 6 service pack 5. And, I am having the compile error: User-defined type not defined with this statement: Dim fso As New FileSystemObject Any help would be appreciated.