| |||
| helo forum...... How i can check size file. Suppose, if i have some file so if the file greater than 20mb i now wanna archive the file. What the code to check the file size!!!!!!!!!!!!!!!!!!!!!!!!! |
| |||
| hi the code goes like this Public Function FileSize(ByVal filepath As String) As Long Dim fi As System.IO.FileInfo = New System.IO.FileInfo(filepath) Return fi.Length End Function but remember this function return will return the size of a file in bytes. |
![]() |
| Thread Tools | |
| Display Modes | |
| |