at1knowitall
Technical User
I get an error if any of the three directories are empty, is there a way to skip over the movefile if the directory is empty?
Thanks,
Mark
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
fso.MoveFile "\\whdb\new\*.*", "\\whdb\admin"
fso.MoveFile "\\whdb\new1\*.*", "\\whdb\admin"
fso.MoveFile "\\whdb\new2\*.*", "\\whdb\admin
Thanks,
Mark
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
fso.MoveFile "\\whdb\new\*.*", "\\whdb\admin"
fso.MoveFile "\\whdb\new1\*.*", "\\whdb\admin"
fso.MoveFile "\\whdb\new2\*.*", "\\whdb\admin