I am trying to move a number of files from one directory to another
using For Each and Next. I have been trying to modify this code from anopther source and one thing I am not sure of is the item called objTFile which refers to the files in my source directory...don't I need to define this somewhere? It does not appear to be defined or referred to anywhere in the code I am looking at. In any case this is not working and I really appreciate some help!
Set objFSO = CreateObject("Scripting.FileSystemObject")
strSourceFolder = "C:\Source"
strDestDir = "C:\ServeFiles"
For Each objSourceFile In objFSO.GetFolder(strSourceFolder).Files
objFile.Copy strDestDir & "\", True