Archive for the ‘File’ Category
How to open the windows explorer programmatically in .net
How to open the windows explorer using vb.net
-
System.Diagnostics.Process.Start("explorer.exe", "c:\tmp")
How to rename a file
-
function MoveFile()
-
dim OrigFilename as string = "myfile.pdf"
-
-
Dim fi As New FileInfo(OrigFilename)
-
-
fi.MoveTo("myNewFile.pdf")
-
-
end function
How to Get File Size
Public Class Tester
Public Shared Sub Main
Dim fileDetail As IO.FileInfo
fileDetail = My.Computer.FileSystem.GetFileInfo(“test.txt”)
Console.WriteLine(“Size: ” & fileDetail.Length & ” byte(s)”)
End Sub
End Class