Click here to Skip to main content
15,911,890 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Sorry now in english => system.UnauthorizedAccessException during access on system directory Pin
cosma2177-Feb-06 11:22
cosma2177-Feb-06 11:22 
AnswerThe system directory is protected by the OS Pin
JUNEYT8-Feb-06 0:31
JUNEYT8-Feb-06 0:31 
GeneralRe: The system directory is protected by the OS Pin
cosma2178-Feb-06 4:46
cosma2178-Feb-06 4:46 
GeneralRe: The system directory is protected by the OS Pin
JUNEYT8-Feb-06 5:03
JUNEYT8-Feb-06 5:03 
GeneralRe: The system directory is protected by the OS Pin
cosma2178-Feb-06 8:36
cosma2178-Feb-06 8:36 
GeneralRe: The system directory is protected by the OS Pin
JUNEYT8-Feb-06 22:42
JUNEYT8-Feb-06 22:42 
GeneralRe: The system directory is protected by the OS Pin
cosma2179-Feb-06 16:40
cosma2179-Feb-06 16:40 
Questionsystem.UnauthorizedAccessException bei Zugriff auf Systemverzeichnis Pin
cosma2177-Feb-06 10:12
cosma2177-Feb-06 10:12 
Beim Lauf durch die Verzeichnisse greift das Programm u.a. auf das Verzeichnis
"C:\System Volume Information" zu. Der Zugriff wird dann verweigert und es wird eine Fehlermeldung zurück gegeben.

Wie kann ich diese Meldung Abfangen (TRY) bzw. vermeiden mit Attribute ?
Bei Abfangen mit Try wird die Schleife nicht weiter durchlaufen.
Bei Vermeidung des Fehlers mit ATTRIBUTE weis ich nicht wie und wo ich diese Abfrage einbeuen muß.

Mein Code :
Private Function FindFiles(ByRef FoundFiles As ArrayList, ByVal dirname As String, ByVal filespec As String, ByVal recurseDirs As Boolean) As ArrayList

Dim strFilter As String = filespec
Dim m_arExt() As String = strFilter.Split(";")
Dim dic As New IO.DirectoryInfo(dirname)

For Each Filter As String In m_arExt

For Each fname As String In System.IO.Directory.GetFiles(dirname, Filter)
FoundFiles.Add(fname)

Next fname

' recurse on subdirectory if so requested
If recurseDirs Then
For Each dname As String In System.IO.Directory.GetDirectories(dirname)
FindFiles(FoundFiles, dname, filespec, recurseDirs)

Next dname
End If
Next Filter

Return FoundFiles

End Function

kann mir jemand weiter helfen ?

Gruß Theo


AnswerRe: system.UnauthorizedAccessException bei Zugriff auf Systemverzeichnis Pin
Christian Graus7-Feb-06 10:59
protectorChristian Graus7-Feb-06 10:59 
QuestionA carriage Return Pin
Mark067-Feb-06 9:39
Mark067-Feb-06 9:39 
AnswerRe: A carriage Return Pin
Christian Graus7-Feb-06 9:51
protectorChristian Graus7-Feb-06 9:51 
GeneralRe: A carriage Return Pin
Mark067-Feb-06 9:59
Mark067-Feb-06 9:59 
GeneralRe: A carriage Return Pin
Christian Graus7-Feb-06 10:20
protectorChristian Graus7-Feb-06 10:20 
QuestionShowing image or icon on XP Button in VB.NET Pin
Hari Om Prakash Sharma7-Feb-06 7:42
Hari Om Prakash Sharma7-Feb-06 7:42 
AnswerRe: Showing image or icon on XP Button in VB.NET Pin
Mekong River7-Feb-06 15:05
Mekong River7-Feb-06 15:05 
Questionupgrade program to vb6 Pin
taurus7777-Feb-06 7:18
taurus7777-Feb-06 7:18 
AnswerRe: upgrade program to vb6 Pin
Dave Kreskowiak7-Feb-06 7:42
mveDave Kreskowiak7-Feb-06 7:42 
AnswerRe: upgrade program to vb6 Pin
Mekong River7-Feb-06 15:00
Mekong River7-Feb-06 15:00 
QuestionThe best way to work with sql database. Pin
UniBond7-Feb-06 6:01
UniBond7-Feb-06 6:01 
AnswerRe: The best way to work with sql database. Pin
Dave Kreskowiak7-Feb-06 6:46
mveDave Kreskowiak7-Feb-06 6:46 
GeneralRe: The best way to work with sql database. Pin
UniBond7-Feb-06 10:03
UniBond7-Feb-06 10:03 
GeneralRe: The best way to work with sql database. Pin
Dave Kreskowiak7-Feb-06 11:10
mveDave Kreskowiak7-Feb-06 11:10 
AnswerRe: The best way to work with sql database. Pin
Guffa7-Feb-06 14:06
Guffa7-Feb-06 14:06 
Question.NET Images...Where R They?? Pin
AlexeiXX37-Feb-06 5:28
AlexeiXX37-Feb-06 5:28 
AnswerRe: .NET Images...Where R They?? Pin
KaptinKrunch7-Feb-06 6:45
KaptinKrunch7-Feb-06 6:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.