|
Post by tanger32au on Mar 25, 2023 11:04:11 GMT
I have a need to get the size of a file in KB or MB from a specific path.
Say I have a file at this path: c:\temp\random file.txt
|
|
|
Post by Rod on Mar 25, 2023 11:50:02 GMT
open "c\temp\random file.txt" for input as #1 print lof(#1)/1024 'kb close #1
|
|
|
Post by Rod on Mar 25, 2023 11:55:24 GMT
Alternatively
dim info$(10,10) files "d:\temp\","test.bas",info$() print info$(1, 0) '- the file name print info$(1, 1) '- the file size print info$(1, 2) '- the file date/time stamp
|
|
|
Post by tanger32au on Mar 26, 2023 0:45:34 GMT
Thank you, that is exactly what I needed to do.
|
|