I have a program that monitors a directory and if any new files come in, they get renamed and are moved to another file.
The way I move the files are that I set the full filename of the item like this
VB Code:
fullFilename = e.FullPath
The new renamed filename is set to a variable like this:
VB Code:
newFilename = branchName & "_" & finalDate & "_" & sPicNum fullNewFilename = selectedPath & "\" & newFilename
Now, when the images are found in the folder, the first item goes and the path gets stored, but once it renames that one file and finishes the job, the next one doesn't work. It is still keeping the path of the old filename in e.FullPath when it is set to fullFilename. Because this is still set in e.FullPath, it screws up my entire program after the first image is renamed. Anyone know what I can do to clear this up? Thanks.





Reply With Quote