jadams0173
Technical User
- Feb 18, 2005
- 1,210
I'm copying a folder from one drive to another for backup purposes. In the folder that I am coping are other folders and files.
There is one file in one of the subfolders that a machine has open and is writing data to that causes the "Permission Denied" error. I don't really care whether I copy this file or not, I just don't want the error message. (It won't copy from windows explorer either xp-sp2 or 2000)
Any one have any suggestions on how to get around this? Would CopyFile work? I was hoping not to have to open each subfolder and use filecopy but if that's what it takes.
I tried to have patience but it took to long!
-DW
There is one file in one of the subfolders that a machine has open and is writing data to that causes the "Permission Denied" error. I don't really care whether I copy this file or not, I just don't want the error message. (It won't copy from windows explorer either xp-sp2 or 2000)
Any one have any suggestions on how to get around this? Would CopyFile work? I was hoping not to have to open each subfolder and use filecopy but if that's what it takes.
Code:
'this will copy the entire folder and all subfolders to the master directory
fso.CopyFolder fld.Path & "\" & Subfld.Name, BackupMaster & "\" & NDFRTF & "\" & Subfld.Name
I tried to have patience but it took to long!