|
-
Nov 23rd, 2000, 10:31 AM
#1
Thread Starter
Addicted Member
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
-
Nov 23rd, 2000, 10:38 AM
#2
Dim MyString As String
MyString = Filename & Chr(32) & FileDateTime(Filename)
-
Nov 23rd, 2000, 11:08 AM
#3
Frenzied Member
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]
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Nov 23rd, 2000, 11:36 AM
#4
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 .
-
Nov 23rd, 2000, 12:03 PM
#5
Thread Starter
Addicted Member
Cheers
Thanks a lot guys.
Much appreciated
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|