System.IO, Zugferd, Dakosy-Import Firma gesetzt durch Division1
This commit is contained in:
@@ -4,11 +4,11 @@ Imports System.IO
|
||||
Module AtlasAufschubDatenEinlesen
|
||||
|
||||
Public Sub initAllFiles(path As String, HISTORY As Boolean) 'Alle Files im Ordner durchlaufen
|
||||
For Each file As String In IO.Directory.GetFiles(path)
|
||||
For Each file As String In System.IO.Directory.GetFiles(path)
|
||||
If HISTORY Then
|
||||
initFile(file)
|
||||
Else
|
||||
Dim FI As New IO.FileInfo(file)
|
||||
Dim FI As New System.IO.FileInfo(file)
|
||||
Dim LastWriteDate As Date = FI.LastWriteTime
|
||||
If LastWriteDate > Now.AddDays(-6) Then
|
||||
initFile(file)
|
||||
@@ -102,7 +102,7 @@ Module AtlasAufschubDatenEinlesen
|
||||
If System.IO.File.Exists(sFile) Then
|
||||
Try
|
||||
Dim F As Short = FreeFile()
|
||||
FileOpen(F, sFile, IO.FileMode.Open, OpenAccess.Read, OpenShare.LockRead)
|
||||
FileOpen(F, sFile, System.IO.FileMode.Open, OpenAccess.Read, OpenShare.LockRead)
|
||||
FileClose(F)
|
||||
Catch
|
||||
Return True
|
||||
|
||||
Reference in New Issue
Block a user