neu
This commit is contained in:
@@ -1076,7 +1076,7 @@ Public Class cProgramFunctions
|
||||
End If
|
||||
|
||||
Dim fn As String = sPath & "tmp_" & Now.ToString("ddMMyyyyHHmmss") & ".csv"
|
||||
Dim outFile As IO.StreamWriter = My.Computer.FileSystem.OpenTextFileWriter(fn, False)
|
||||
Dim outFile As System.IO.StreamWriter = My.Computer.FileSystem.OpenTextFileWriter(fn, False)
|
||||
Dim clmns As String = ""
|
||||
For i = 0 To dgv.Columns.Count - 1
|
||||
' If Not onlyVisible Or (onlyVisible And dgv.Columns(i).Visible = True) Then
|
||||
@@ -1128,7 +1128,7 @@ Public Class cProgramFunctions
|
||||
|
||||
|
||||
Dim fn As String = sPath & "tmp_" & Now.ToString("ddMMyyyyHHmmss") & ".csv"
|
||||
Dim outFile As IO.StreamWriter = My.Computer.FileSystem.OpenTextFileWriter(fn, False)
|
||||
Dim outFile As System.IO.StreamWriter = My.Computer.FileSystem.OpenTextFileWriter(fn, False)
|
||||
Dim clmns As String = ""
|
||||
For i = 0 To dgv.ColumnCount - 1
|
||||
If Not onlyVisible Or (onlyVisible And dgv.Columns(i).Visible = True) Then
|
||||
@@ -1173,7 +1173,7 @@ Public Class cProgramFunctions
|
||||
End If
|
||||
|
||||
Dim fn As String = sPath & "tmp_" & Now.ToString("ddMMyyyyHHmmss") & ".csv"
|
||||
Dim outFile As IO.StreamWriter = My.Computer.FileSystem.OpenTextFileWriter(fn, False)
|
||||
Dim outFile As System.IO.StreamWriter = My.Computer.FileSystem.OpenTextFileWriter(fn, False)
|
||||
Dim clmns As String = ""
|
||||
For i = 0 To dgv.ColumnCount - 1
|
||||
If Not onlyVisible Or (onlyVisible And dgv.Columns(i).Visible = True) Then
|
||||
@@ -1244,8 +1244,8 @@ Public Class cProgramFunctions
|
||||
Private Shared WithEvents p As New Process
|
||||
Shared Sub cleartmp(ByVal sender As System.Object, ByVal e As System.EventArgs) 'Nach Beenden des Programmes werden alle temporären Dateien gelöscht
|
||||
Dim dir = Environment.GetFolderPath(Environment.SpecialFolder.Personal) & "\VERAG\Monitoring\tmp\"
|
||||
If IO.Directory.Exists(dir) Then
|
||||
For Each file As String In IO.Directory.GetFiles(dir) ' Ermittelt alle Dateien des Ordners
|
||||
If System.IO.Directory.Exists(dir) Then
|
||||
For Each file As String In System.IO.Directory.GetFiles(dir) ' Ermittelt alle Dateien des Ordners
|
||||
Try
|
||||
My.Computer.FileSystem.DeleteFile(file)
|
||||
Catch ex As Exception : MsgBox(ex.Message) : End Try
|
||||
|
||||
Reference in New Issue
Block a user