For some time I've been having an awful time trying to come up with a script to do several things with a set of files. Usually I'm able to find some script on the web which is close to what I need and then I can modify it as necessary. In this case though, I've only been able to find scripts that fit one of the specifications and am having a really hard time getting parts from different scripts to fit together. I know that it would probably be best to get something made "from scratch", but my skill level is well below what is necessary for getting the array put together and dealing with path and file name issues. I'm hoping somebody here would be kind enough to slap something together that fits the parameters set below so I can see where I'm messing up.
Here's the basic functionality of the script. Using FilesystemObject. There are three directories involved. A source, a destination, and an error directory. From the srcdir, get all files with a specific extension (.tif in this case), and check if they already exist in the destdir. If a file already exists in destdir, then move it to the errordir. If not, then move it to the destdir. After each file has been moved, each also needs to have some attributes changed (based on where it went), which I think is easiest by doing a objShell.Run "Attrib.exe" against it. Finally, it also has to keep count of how many went to the destdir and how many went to the errordir for display at the end of the script.
If anyone here cares to lend a hand (and code ), it would be much appreciated.
Here's the basic functionality of the script. Using FilesystemObject. There are three directories involved. A source, a destination, and an error directory. From the srcdir, get all files with a specific extension (.tif in this case), and check if they already exist in the destdir. If a file already exists in destdir, then move it to the errordir. If not, then move it to the destdir. After each file has been moved, each also needs to have some attributes changed (based on where it went), which I think is easiest by doing a objShell.Run "Attrib.exe" against it. Finally, it also has to keep count of how many went to the destdir and how many went to the errordir for display at the end of the script.
If anyone here cares to lend a hand (and code ), it would be much appreciated.