figured it out...needed Set fso = CreateObject("Scripting.filesystemobject")
instead of the DIM statement