CopyFolder Permission Denied, but who by?

D

DartGuru

If I use the following code...

Dim Fso As Scripting.FileSystemObject
Set Fso = New Scripting.FileSystemObject
Fso.CopyFolder sOriginalFolder, sBackupFolder
Set Fso = Nothing

I occassionally get a permission denied error if someone has any files
in "sOriginalFolder" open.
Are there any functions that tell me exactly WHO has the file open (so
I can go and pester them to clsoe it down)?

TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top