Is it possible to search a directory looking for a particular file, then if found, copy the directory and all its contents to another location?
it should be noted that not all of the files will be *.xls.
Is it possible to search a directory looking for a particular file, then if found, copy the directory and all its contents to another location?
it should be noted that not all of the files will be *.xls.
Re: Copy Directory If File Exists
Thanks Bob,
One problem though. It only copies the directories under the root folder, but doesn't copy any files that live in the root folder.
I tried playing around with the path a little, but nothing seemed to work.
Any suggestions?
Re: Copy Directory If File Exists
nevermind. Change "copyfolder' to "copyfile"
Thanks Again!!!!
Don’t have an account yet? Register yourself now and be a part of our community!