Torna al Thread

Private Function chkFile(ByVal path As String) As String If System.IO.File.Exists(path) Then Try Dim fs As New System.IO.FileStream(path, IO.FileMode.Open, IO.FileAccess.ReadWrite, IO.FileShare.None) fs.Close() Return "ok" Catch ex As Exception Return "in uso" End Try Else Return "non esiste" End If End Function
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5