ferryjenny
Technical User
Hi looking for some scripting help to copy files.
We have a directory that files are feed into, once in the directory they are processed and then deleted. I am looking for some way to copy these files when they are initially placed in the folder before they are processed.
So basically what I want is a script that when the file is put in the folder it makes a copy of it to another folder. I think I can do the copy part but I need help with the code that would trigger the copy.
Does anybody know code that would constantly poll the folder and when a file is added copy it to another folder.
We have a directory that files are feed into, once in the directory they are processed and then deleted. I am looking for some way to copy these files when they are initially placed in the folder before they are processed.
So basically what I want is a script that when the file is put in the folder it makes a copy of it to another folder. I think I can do the copy part but I need help with the code that would trigger the copy.
Does anybody know code that would constantly poll the folder and when a file is added copy it to another folder.