sj1187534
Well-known member
Dim dt As DateTime = DateTime.Now()
Dim permlogfilename As String = "Gisb_Log_Out_" & dt.Year & dt.Month & dt.Day & dt.Hour & dt.Minute & dt.Second & ".txt"
Dim permlogfilepath As String = Me.logDir & "OUTLOG\" & permlogfilename
templogfileinfo.CopyTo(permlogfilepath)
templogfileinfo.Delete()
When it is attemtping to copy the file at the .CopyTo command, it is saying that the file represented by "permlogfilepath" is being used by another process.
Any ideas?
SJ
Dim permlogfilename As String = "Gisb_Log_Out_" & dt.Year & dt.Month & dt.Day & dt.Hour & dt.Minute & dt.Second & ".txt"
Dim permlogfilepath As String = Me.logDir & "OUTLOG\" & permlogfilename
templogfileinfo.CopyTo(permlogfilepath)
templogfileinfo.Delete()
When it is attemtping to copy the file at the .CopyTo command, it is saying that the file represented by "permlogfilepath" is being used by another process.
Any ideas?
SJ
Last edited by a moderator: