I need to copy files from one directory into another one. I'm using the FileCopy command. It is coming back with error number 76 or Path not found. I know that both directories are created and that the program can see what is in the 2 directories. I just don't know why FileCopy can not find the path,
FilePath = GetFiles & FileName
Do While FileName <> ""
If FileName = "" Then
result = FileFinder(GetFiles)
count = CInt(result)
count = count - 1
FileCopy FilePath, MoveLocation
answer = 1
Else
FileCopy FilePath, MoveLocation
answer = 1
End If
Loop
MoveFiles = answer
The files that I'm trying to move are never opened, and are not read only. What the program is supposed to do is look into a directory and if there is a file there then it is to move it into another directory, that is all.




Reply With Quote