M
Mick
I'm new to VB.NET (and Windows progamming in general) and am writing a small
program which allows the user to select a directory with or without
subdirectories and perform a series of automatic actions through scripting
in Photoshop on the files in the directories. I am using
Directory.GetFiles(folderName) to get a list of the files in the
directories. All is working fine except when I choose a directory which
contains a folder where the path access is denied such as the root of a
partition which contains a System Volume Information folder. I have tried
various things to trap the error but the best I have been able to manage is
a Try Catch which stops the whole process with Path Access Denied error.
Is there some simple way I can prevent Directory.GetFiles from attempting to
operate on directories which have Access Denied to prevent this error
occurring. I've been wading through the vast amounts of documentation and
can't find a solution. I'd be really grateful for some help.
program which allows the user to select a directory with or without
subdirectories and perform a series of automatic actions through scripting
in Photoshop on the files in the directories. I am using
Directory.GetFiles(folderName) to get a list of the files in the
directories. All is working fine except when I choose a directory which
contains a folder where the path access is denied such as the root of a
partition which contains a System Volume Information folder. I have tried
various things to trap the error but the best I have been able to manage is
a Try Catch which stops the whole process with Path Access Denied error.
Is there some simple way I can prevent Directory.GetFiles from attempting to
operate on directories which have Access Denied to prevent this error
occurring. I've been wading through the vast amounts of documentation and
can't find a solution. I'd be really grateful for some help.