-
Hi guys
I have the name of a file stored in a string. How do I append that filename with the size of the file itself and a timestamp. So basically what I am looking for is:
Mystring = filename + filesize + timestamp.
Any ideas are greatly appreciated...
Thanks
JK
-
Dim MyString As String
MyString = Filename & Chr(32) & FileDateTime(Filename)
-
hey Matthew, since when is the filesize the same as Chr(32)? ;)
Code:
Dim MyString$ 'is same as "As String", but I think it's cool :)
MyString = Filename & FileLen(Filename) & FileDateTime(Filename)
Adios.
[Edited by Jop on 11-23-2000 at 11:10 AM]
-
Oops. Forgot the FileSize.
Chr(32) is the spaces in between or your going to get a bunch of jumbled up text.
Code:
MyString = FileName & Chr(32) & FileLen(FileName) & _
Chr(32) & FileDateTime(FileName)
But thanks Jop.
Just makin' sure your paying attention :rolleyes:.
-
Cheers
Thanks a lot guys.
Much appreciated