Prozeduren, Mailsender, MSE-Automatik

This commit is contained in:
2024-10-18 09:50:30 +02:00
parent 3950f2f100
commit ad16598414
13 changed files with 1158 additions and 1870 deletions

View File

@@ -315,7 +315,7 @@ Public Class usrctlProcedures
' & "authenticationLevel=pktPrivacy," _
' & "authority=ntlmdomain:verag.ost.dmn," _
' & "(Debug,!RemoteShutdown)}" _
'& "[locale=ms_409]" _
'& " DYIMPORT.locale=ms_409]" _
'& "!\\User1\ROOT\CIMV2:Win32_LogicalDisk=""C:""")
Dim Process
test = False
@@ -580,7 +580,7 @@ Public Class usrctlProcedures
For Each file As String In System.IO.Directory.GetFiles("C:\Users\DEVELOPER1\Desktop\Verpfl\Fahrer_NCTS_Verpflichtungserklärungen\") ' Ermittelt alle Dateien des Ordners
Try
Dim pdf As iTextSharp.text.pdf.PdfReader = New iTextSharp.text.pdf.PdfReader(file)
Dim pdf As itextsharp.text.pdf.PdfReader = New itextsharp.text.pdf.PdfReader(file)
Dim stamper = New PdfStamper(pdf, New FileStream("C:\Users\DEVELOPER1\Desktop\Verpfl\tmp.pdf", FileMode.Create))
Dim f = stamper.AcroFields
@@ -643,7 +643,7 @@ Public Class usrctlProcedures
End Function
Sub pdf2()
Dim pdf As iTextSharp.text.pdf.PdfReader = New iTextSharp.text.pdf.PdfReader("C:\Users\DEVELOPER1\Desktop\Verpfl\test.pdf")
Dim pdf As itextsharp.text.pdf.PdfReader = New itextsharp.text.pdf.PdfReader("C:\Users\DEVELOPER1\Desktop\Verpfl\test.pdf")
Using fw As New FileStream("C:\Users\DEVELOPER1\Desktop\Verpfl\tmp.pdf", FileMode.Open)
@@ -974,8 +974,8 @@ Public Class usrctlProcedures
cn.ConnectionString = "Data Source=SQLGUIDE01.verag.ost.dmn;Initial Catalog=AVISO;Integrated Security=false;User ID=sa;Password=BmWr501956;"
cn.Open()
Using cmd As New SqlCommand("SELECT COUNT(*) FROM [AVISO].[dbo].[Aviso] where [Ankunft] between @DatVon and @DatBis and Grenzstelle='SUB'", cn)
'DATEADD(dd, 0, DATEDIFF(dd, 0, [Ankunft]))=DATEADD(dd, 0, DATEDIFF(dd, 0, [Freigabe])) AND
Using cmd As New SqlCommand("SELECT COUNT(*) FROM DYIMPORT.AVISO]. DYIMPORT.dbo]. DYIMPORT.Aviso] where DYIMPORT.Ankunft] between @DatVon and @DatBis and Grenzstelle='SUB'", cn)
'DATEADD(dd, 0, DATEDIFF(dd, 0, DYIMPORT.Ankunft]))=DATEADD(dd, 0, DATEDIFF(dd, 0, DYIMPORT.Freigabe])) AND
Dim VonStr = ""
Dim BisStr = ""
If i = 6 Then
@@ -1442,9 +1442,9 @@ Public Class usrctlProcedures
s = sr.ReadLine()
Dim sql = "UPDATE [Adressen] " &
" SET [Auswahl]='I' " &
" WHERE [AdressenNr] = @kdnr"
Dim sql = "UPDATE DYIMPORT.Adressen] " &
" SET DYIMPORT.Auswahl]='I' " &
" WHERE DYIMPORT.AdressenNr] = @kdnr"
Dim cn As New SqlConnection()
cn.ConnectionString = My.Resources.connStringFMZOLL
@@ -1490,21 +1490,21 @@ Public Class usrctlProcedures
Dim cnt = 1
'dim listAVISO = New List(Of cAviso)
Dim sql As New VERAG_PROG_ALLGEMEIN.SQL
Dim dt As DataTable = sql.loadDgvBySql(" SELECT TOP (" & CInt(TextBox1.Text) & ") * FROM [AVISO_ATILLA].[dbo].[Aviso] WHERE Importiert=0 order by Avisoid ", "AVISO_ATILLA") '
Dim dt As DataTable = sql.loadDgvBySql(" SELECT TOP (" & CInt(TextBox1.Text) & ") * FROM DYIMPORT.AVISO_ATILLA]. DYIMPORT.dbo]. DYIMPORT.Aviso] WHERE Importiert=0 order by Avisoid ", "AVISO_ATILLA") '
' My.MySettings.Default.AVISO_ATILLAConnectionString
For Each r As DataRow In dt.Rows
Dim NEWAVISOID = (SpeichernAviso(r))
Dim dtAenderungen As DataTable = sql.loadDgvBySql(" SELECT * FROM [AVISO_ATILLA].[dbo].[Aenderungen] WHERE Avisoid='" & r("AvisoID") & "'", "AVISO_ATILLA")
Dim dtAenderungen As DataTable = sql.loadDgvBySql(" SELECT * FROM DYIMPORT.AVISO_ATILLA]. DYIMPORT.dbo]. DYIMPORT.Aenderungen] WHERE Avisoid='" & r("AvisoID") & "'", "AVISO_ATILLA")
For Each r2 As DataRow In dtAenderungen.Rows
addAenderung(NEWAVISOID, r2)
Next
Dim dtVermerke As DataTable = sql.loadDgvBySql(" SELECT * FROM [AVISO_ATILLA].[dbo].[Vermerke] WHERE Avisoid='" & r("AvisoID") & "'", "AVISO_ATILLA")
Dim dtVermerke As DataTable = sql.loadDgvBySql(" SELECT * FROM DYIMPORT.AVISO_ATILLA]. DYIMPORT.dbo]. DYIMPORT.Vermerke] WHERE Avisoid='" & r("AvisoID") & "'", "AVISO_ATILLA")
For Each r2 As DataRow In dtVermerke.Rows
SpeichernVermerk(NEWAVISOID, r2)
Next
sql.doSQL(" UPDATE [AVISO_ATILLA].[dbo].[Aviso] SET Importiert=1 WHERE Avisoid='" & r("AvisoID") & "'", "AVISO_ATILLA") ' IMPORTIERT Setzen
sql.doSQL(" UPDATE DYIMPORT.AVISO_ATILLA]. DYIMPORT.dbo]. DYIMPORT.Aviso] SET Importiert=1 WHERE Avisoid='" & r("AvisoID") & "'", "AVISO_ATILLA") ' IMPORTIERT Setzen
If cnt Mod 5 = 0 Then
@@ -1537,7 +1537,7 @@ Public Class usrctlProcedures
Public Sub addAenderung(NEWAVISOID As Integer, ByVal r As DataRow)
Dim hAuswahl As String = " INSERT INTO Aenderungen " &
" ([AvisoID], [Datum], [Mitarbeiter], [MitarbeiterId], [Aenderung_Art], [Aenderung_Text]) " &
" ( DYIMPORT.AvisoID], DYIMPORT.Datum], DYIMPORT.Mitarbeiter], DYIMPORT.MitarbeiterId], DYIMPORT.Aenderung_Art], DYIMPORT.Aenderung_Text]) " &
" VALUES (@AvisoID, @Datum, @Mitarbeiter, @MitarbeiterId, @Aenderung_Art, @Aenderung_Text)"
Dim sql = hAuswahl
@@ -2253,7 +2253,7 @@ Public Class usrctlProcedures
KD.Zollvollmacht = CDate(vollmacht).ToShortDateString
sql.doSQL("INSERT INTO tblKundenVollmachten " &
" ([kdvm_KundenNr],[kdvm_kdvmaId] ,[kdvm_erhalten],[kdvm_erhalten_Datum],[kdvm_Info],[kdvm_datenarchivId]) " &
" ( DYIMPORT.kdvm_KundenNr], DYIMPORT.kdvm_kdvmaId] , DYIMPORT.kdvm_erhalten], DYIMPORT.kdvm_erhalten_Datum], DYIMPORT.kdvm_Info], DYIMPORT.kdvm_datenarchivId]) " &
" VALUES ('" & KD.KundenNr & "',5 ,1,'" & CDate(vollmacht).ToShortDateString & "','',null) ", "FMZOLL")
Else
KD.Zollvollmacht_vom = False
@@ -2861,7 +2861,7 @@ Public Class usrctlProcedures
' KD.Zollvollmacht = CDate(vollmacht).ToShortDateString
' sql.doSQL("INSERT INTO tblKundenVollmachten " &
' " ([kdvm_KundenNr],[kdvm_kdvmaId] ,[kdvm_erhalten],[kdvm_erhalten_Datum],[kdvm_Info],[kdvm_datenarchivId]) " &
' " ( DYIMPORT.kdvm_KundenNr], DYIMPORT.kdvm_kdvmaId] , DYIMPORT.kdvm_erhalten], DYIMPORT.kdvm_erhalten_Datum], DYIMPORT.kdvm_Info], DYIMPORT.kdvm_datenarchivId]) " &
' " VALUES ('" & KD.KundenNr & "',5 ,1,'" & CDate(vollmacht).ToShortDateString & "','',null) ", "FMZOLL")
' Else
' KD.Zollvollmacht_vom = False
@@ -3442,6 +3442,261 @@ Public Class usrctlProcedures
VERAG_PROG_ALLGEMEIN.cGoogleAPI.test()
End Sub
Private Sub Button33_Click(sender As Object, e As EventArgs) Handles Button33.Click
Dim cnt = 0
Dim sql As New VERAG_PROG_ALLGEMEIN.SQL
Dim kdnr_tmp = ""
Try
Dim fd As New OpenFileDialog
If fd.ShowDialog = DialogResult.OK Then
If fd.FileName.ToLower.EndsWith(".csv") Then
' fd.FileName.EndsWith(".csv")
Using MyReader As New Microsoft.VisualBasic.FileIO.TextFieldParser(fd.FileName, Encoding.Default)
MyReader.TextFieldType = FileIO.FieldType.Delimited
MyReader.SetDelimiters(";")
Dim currentRow As String()
While Not MyReader.EndOfData
Try
'
currentRow = MyReader.ReadFields()
If currentRow.Length > 2 Then
If Not (currentRow(0).Trim() = "Teilnehmer") Then
If currentRow.Length > 137 Then
Dim DYIMPORT As New VERAG_PROG_ALLGEMEIN.cDY_Zollanmeldungen_Import()
If Not DYIMPORT.hasEntry Then
DYIMPORT.Teilnehmer = isleernothing((currentRow(0)))
DYIMPORT.Anmeldeart_A = isleernothing((currentRow(1)))
DYIMPORT.Verfahren = isleernothing((currentRow(2)))
DYIMPORT.Bezugsnummer_LRN = isleernothing((currentRow(3)))
DYIMPORT.Anlagedatum = isleernothing((currentRow(4)))
DYIMPORT.Zeit = isleernothing((currentRow(5)))
DYIMPORT.Zeitpunkt_der_letzten_CUSTAX = isleernothing((currentRow(6)))
DYIMPORT.Überlassungsdatum = isleernothing((currentRow(7)))
DYIMPORT.Annahmedatum = isleernothing((currentRow(8)))
DYIMPORT.Registriernummer_MRN = isleernothing((currentRow(9)))
DYIMPORT.Weitere_Reg_Nr = isleernothing((currentRow(10)))
DYIMPORT.EDIFNR = isleernothing((currentRow(11)))
DYIMPORT.Versendungsland = isleernothing((currentRow(12)))
DYIMPORT.Art_der_Vertretung = isleernothing((currentRow(13)))
DYIMPORT.Vertreter_des_Anmelders = isleernothing((currentRow(14)))
DYIMPORT.Vertreter_AE_EORI = isleernothing((currentRow(15)))
DYIMPORT.AE_Name = isleernothing((currentRow(16)))
DYIMPORT.Versender_CZ_EORI = isleernothing((currentRow(17)))
DYIMPORT.CZ_Code = isleernothing((currentRow(18)))
DYIMPORT.CZ_Name = isleernothing((currentRow(19)))
DYIMPORT.CZ_Ländercode = isleernothing((currentRow(20)))
DYIMPORT.Empfänger_CN_EORI = isleernothing((currentRow(21)))
DYIMPORT.CN_Code = isleernothing((currentRow(22)))
DYIMPORT.CN_Name = isleernothing((currentRow(23)))
DYIMPORT.CN_Ländercode = isleernothing((currentRow(24)))
DYIMPORT.Anmelder_DT_EORI = isleernothing((currentRow(25)))
DYIMPORT.DT_Code = isleernothing((currentRow(26)))
DYIMPORT.DT_Name = isleernothing((currentRow(27)))
DYIMPORT.DT_Ländercode = isleernothing((currentRow(28)))
DYIMPORT.UstID_DT = isleernothing((currentRow(29)))
DYIMPORT.Käufer_BY_Name = isleernothing((currentRow(30)))
DYIMPORT.BY_EORI = isleernothing((currentRow(31)))
DYIMPORT.Verkäufer_SL_Name = isleernothing((currentRow(32)))
DYIMPORT.SL_EORI = isleernothing((currentRow(33)))
DYIMPORT.ZollRechtlicherStatus = isleernothing((currentRow(34)))
DYIMPORT.Bewilligungsnummer = isleernothing((currentRow(35)))
DYIMPORT.Gesamtgewicht = IIf(isleernothing((currentRow(36))) <> "", CDbl(isleernothing(currentRow(36))), 0)
DYIMPORT.Liefercode = isleernothing((currentRow(37)))
DYIMPORT.Lieferort = isleernothing((currentRow(38)))
DYIMPORT.Lieferkey = isleernothing((currentRow(39)))
DYIMPORT.Geschäftsart = isleernothing((currentRow(40)))
DYIMPORT.Rechnungsbetrag = IIf(isleernothing((currentRow(41))) <> "", CDbl(isleernothing(currentRow(41))), 0)
DYIMPORT.Rechnungswährung = isleernothing((currentRow(42)))
DYIMPORT.Rechnungskurs = IIf(isleernothing((currentRow(43))) <> "", CDbl(isleernothing(currentRow(43))), 0)
DYIMPORT.Zollstelle = isleernothing((currentRow(44)))
DYIMPORT.Aufschubart = isleernothing((currentRow(45)))
DYIMPORT.HZAZoll = isleernothing((currentRow(46)))
DYIMPORT.KontoZoll = isleernothing((currentRow(47)))
DYIMPORT.TextZoll = isleernothing((currentRow(48)))
DYIMPORT.EORIZoll = isleernothing((currentRow(49)))
DYIMPORT.KennzeichenEigenZoll = isleernothing((currentRow(50)))
DYIMPORT.ArtEust = isleernothing((currentRow(51)))
DYIMPORT.HZAEust = isleernothing((currentRow(52)))
DYIMPORT.KontoEusT = isleernothing((currentRow(53)))
DYIMPORT.TextEust = isleernothing((currentRow(54)))
DYIMPORT.EORIEust = isleernothing((currentRow(55)))
DYIMPORT.KennzeichenEigenEust = isleernothing((currentRow(56)))
DYIMPORT.Container = isleernothing((currentRow(57)))
DYIMPORT.Unterlagenzeile = isleernothing((currentRow(58)))
DYIMPORT.Unterlagenbereich = isleernothing((currentRow(59)))
DYIMPORT.Unterlagenart = isleernothing((currentRow(60)))
DYIMPORT.Unterlagennummer = isleernothing((currentRow(61)))
DYIMPORT.Unterlagendatum = isleernothing((currentRow(62)))
DYIMPORT.PositionNo = isleernothing((currentRow(63)))
DYIMPORT.Positionen = isleernothing((currentRow(64)))
DYIMPORT.Vorausstl_Zollabgabe = IIf(isleernothing((currentRow(65))) <> "", CDbl(isleernothing(currentRow(65))), 0)
DYIMPORT.Vorausstl_Zollsatzabgabe = IIf(isleernothing((currentRow(66))) <> "", CDbl(isleernothing(currentRow(66))), 0)
DYIMPORT.Vorausstl_Eustabgabe = IIf(isleernothing((currentRow(67))) <> "", CDbl(isleernothing(currentRow(67))), 0)
DYIMPORT.Vorausstl_Eustsatzabgabe = IIf(isleernothing((currentRow(68))) <> "", CDbl(isleernothing(currentRow(68))), 0)
DYIMPORT.Zollwert = IIf(isleernothing((currentRow(69))) <> "", CDbl(isleernothing(currentRow(69))), 0)
DYIMPORT.AbgabeZoll = IIf(isleernothing((currentRow(70))) <> "", CDbl(isleernothing(currentRow(70))), 0)
DYIMPORT.AbgabeZollsatz = IIf(isleernothing((currentRow(71))) <> "", CDbl(isleernothing(currentRow(71))), 0)
DYIMPORT.Eustwert = IIf(isleernothing((currentRow(72))) <> "", CDbl(isleernothing(currentRow(72))), 0)
DYIMPORT.AbgabeEust = IIf(isleernothing((currentRow(73))) <> "", CDbl(isleernothing(currentRow(73))), 0)
DYIMPORT.AbgabeEustsatz = IIf(isleernothing((currentRow(74))) <> "", CDbl(isleernothing(currentRow(74))), 0)
DYIMPORT.AbgabeAntidumping = IIf(isleernothing((currentRow(75))) <> "", CDbl(isleernothing(currentRow(75))), 0)
DYIMPORT.AbgabeAntidumpingSatz = IIf(isleernothing((currentRow(76))) <> "", CDbl(isleernothing(currentRow(76))), 0)
DYIMPORT.Status_Steuerbescheid = isleernothing((currentRow(77)))
DYIMPORT.ArtikelCode = isleernothing((currentRow(78)))
DYIMPORT.Warentarifnummer = isleernothing((currentRow(79)))
DYIMPORT.Warenzusatz1 = isleernothing((currentRow(80)))
DYIMPORT.Warenzusatz2 = isleernothing((currentRow(81)))
DYIMPORT.Warenbezeichnung = isleernothing((currentRow(82)))
DYIMPORT.Verfahren2 = isleernothing((currentRow(83)))
DYIMPORT.EU_Code = isleernothing((currentRow(84)))
DYIMPORT.Artikelpreis = IIf(isleernothing((currentRow(85))) <> "", CDbl(isleernothing(currentRow(85))), 0)
DYIMPORT.Statistischerwert = IIf(isleernothing((currentRow(86))) <> "", CDbl(isleernothing(currentRow(86))), 0)
DYIMPORT.Eust_manuell = IIf(isleernothing((currentRow(87))) <> "", CDbl(isleernothing(currentRow(87))), 0)
DYIMPORT.Ursprung = isleernothing((currentRow(88)))
DYIMPORT.Präferenzursprungsland = isleernothing((currentRow(89)))
DYIMPORT.Beguenstigung = isleernothing((currentRow(90)))
DYIMPORT.Rohmasse = IIf(isleernothing((currentRow(91))) <> "", CDbl(isleernothing(currentRow(91))), 0)
DYIMPORT.Rohmasseeinheit = isleernothing((currentRow(92)))
DYIMPORT.Eigenmasse = IIf(isleernothing((currentRow(93))) <> "", CDbl(isleernothing(currentRow(93))), 0)
DYIMPORT.Eigenmasseeinheit = isleernothing((currentRow(94)))
DYIMPORT.Positionszusatz = isleernothing((currentRow(95)))
DYIMPORT.Aussenhandelstatistische_Menge = IIf(isleernothing((currentRow(96))) <> "", CDbl(isleernothing(currentRow(96))), 0)
DYIMPORT.Maßeinheit = isleernothing((currentRow(97)))
DYIMPORT.AnzahlPackstücke = IIf(isleernothing((currentRow(98))) <> "", CDbl(isleernothing(currentRow(98))), 0)
DYIMPORT.Packstückart = isleernothing((currentRow(99)))
DYIMPORT.Packstückbezeichnung = isleernothing((currentRow(100)))
DYIMPORT.Zusätzliche_angaben = isleernothing((currentRow(101)))
DYIMPORT.SonderAbgabeZoll = IIf(isleernothing((currentRow(102))) <> "", CDbl(isleernothing(currentRow(102))), 0)
DYIMPORT.SonderAbgabeEust = IIf(isleernothing((currentRow(103))) <> "", CDbl(isleernothing(currentRow(103))), 0)
DYIMPORT.AbgabeZusatzzölle = IIf(isleernothing((currentRow(104))) <> "", CDbl(isleernothing(currentRow(104))), 0)
DYIMPORT.SonderAbgabeAntidumping = IIf(isleernothing((currentRow(105))) <> "", CDbl(isleernothing(currentRow(105))), 0)
DYIMPORT.Verbrauchssteuern = IIf(isleernothing((currentRow(106))) <> "", CDbl(isleernothing(currentRow(106))), 0)
DYIMPORT.Positionsunterlagenzeile = isleernothing((currentRow(107)))
DYIMPORT.Positionsunterlagenbereich = isleernothing((currentRow(108)))
DYIMPORT.Positionsunterlagenart = isleernothing((currentRow(109)))
DYIMPORT.Positionsunterlagennummer = isleernothing((currentRow(110)))
DYIMPORT.Positionsunterlagendatum = isleernothing((currentRow(111)))
DYIMPORT.DV1Rechnungsbetrag = IIf(isleernothing((currentRow(112))) <> "", CDbl(isleernothing(currentRow(112))), 0)
DYIMPORT.DV1Währung = isleernothing((currentRow(113)))
DYIMPORT.DV1UmgerechnerterRechnungsbetrag = IIf(isleernothing((currentRow(114))) <> "", CDbl(isleernothing(currentRow(114))), 0)
DYIMPORT.DV1UmgerechneteWährung = isleernothing((currentRow(115)))
DYIMPORT.DV1Versicherung = IIf(isleernothing((currentRow(116))) <> "", CDbl(isleernothing(currentRow(116))), 0)
DYIMPORT.DV1Versicherungswährung = isleernothing((currentRow(117)))
DYIMPORT.DV1Luftfrachtkosten = IIf(isleernothing((currentRow(118))) <> "", CDbl(isleernothing(currentRow(118))), 0)
DYIMPORT.DV1Luftfrachtwährung = isleernothing((currentRow(119)))
DYIMPORT.DV1Frachtkosten = IIf(isleernothing((currentRow(120))) <> "", CDbl(isleernothing(currentRow(120))), 0)
DYIMPORT.DV1Frachtwährung = isleernothing((currentRow(121)))
DYIMPORT.DV1Materialien = IIf(isleernothing((currentRow(122))) <> "", CDbl(isleernothing(currentRow(122))), 0)
DYIMPORT.DV1Materialwährung = isleernothing((currentRow(123)))
DYIMPORT.DV1Provisionen = IIf(isleernothing((currentRow(124))) <> "", CDbl(isleernothing(currentRow(124))), 0)
DYIMPORT.DV1Provisionwährung = isleernothing((currentRow(125)))
DYIMPORT.Abflughafen_Code = isleernothing((currentRow(126)))
DYIMPORT.Abflughafen_Text = isleernothing((currentRow(127)))
DYIMPORT.Vorpapierart = isleernothing((currentRow(128)))
DYIMPORT.Vorpapiere_Regnummer = isleernothing((currentRow(129)))
DYIMPORT.BEAnteil_SumA = isleernothing((currentRow(130)))
DYIMPORT.BEAnteil_ZL = IIf(isleernothing((currentRow(131))) <> "", CDbl(isleernothing(currentRow(131))), 0)
DYIMPORT.BEAnteil_AV = IIf(isleernothing((currentRow(132))) <> "", CDbl(isleernothing(currentRow(132))), 0)
DYIMPORT.UST_ID_Einführer = isleernothing((currentRow(133)))
DYIMPORT.UST_ID_Erwerber = isleernothing((currentRow(134)))
DYIMPORT.UST_ID_Fiskalvertreter = isleernothing((currentRow(135)))
DYIMPORT.Shipmentnummer = isleernothing((currentRow(136)))
DYIMPORT.Importstatus = isleernothing((currentRow(137)))
If DYIMPORT.SAVE() Then
TextBox10.Text &= DYIMPORT.Id & vbNewLine
Else
MsgBox("FEHLER: " & currentRow(2).Trim())
End If
End If
If cnt Mod 10 = 0 Then
Application.DoEvents()
Label10.Text = (cnt + 1)
End If
Else
'MsgBox(currentRow(2))
End If
End If
End If
'For Each currentField In currentRow
cnt += 1
'Next
Catch ex As Exception
MsgBox(kdnr_tmp & " " & ex.Message & ex.StackTrace)
End Try
End While
End Using
End If
End If
Catch ex As Exception
MessageBox.Show("Datei nicht vorhanden.")
Finally
End Try
End Sub
'Private Sub Button26_Click(sender As Object, e As EventArgs)
' For Each d In System.IO.Directory.GetDirectories("\\192.168.0.91\Datenarchiv\DAKOSY\ECHTSYSTEM\Nachrichtendaten_Ablage\2019")