G
Guest
We have a loop where we process a large number of files.
We need a way to make a distinction between the following two IOExceptions Messages:
1. The network path was not found.
2. The process cannot access the file "\\NetworkPath\FileName" because it is being used by another process.
In the first case we have a network connection problem and their is no need to continue the loop.
In the second case we simply need to skip that file and continue with the next.
Is their a way to make this distinction without resorting to examining the Message string?
TIA
We need a way to make a distinction between the following two IOExceptions Messages:
1. The network path was not found.
2. The process cannot access the file "\\NetworkPath\FileName" because it is being used by another process.
In the first case we have a network connection problem and their is no need to continue the loop.
In the second case we simply need to skip that file and continue with the next.
Is their a way to make this distinction without resorting to examining the Message string?
TIA