is there an api that give you the oppurtunity to get info of a specific file like (File size,Date-time created,Date-time last modidied,etc....)
Printable View
is there an api that give you the oppurtunity to get info of a specific file like (File size,Date-time created,Date-time last modidied,etc....)
Add the Microsoft Scripting Runtime DLL to your project (go to PROJECT / REFERENCES and find it)
Then;
You can then use;Code:Dim FSO as New FileSystemObject
Dim MyFile as File
Set MyFile=FSO.GetFile("[filename]")
MyFile.DateCreated for the creation date.
MyFile.DateLastAccessed for the last access date.
MyFile.DateLastModified for the modified date.
MyFile.Size for the size of the file
MyFile.Attributes to get the attributes of the file - check out the help file for more info.
and much more. The MS Scripting Runtime object is very useful in any program that needs to know things about the file system.
for the attributes , they give you a number is there a way to get like read or something else
Here you go:
0 - normal
1 - read only
2 - hidden
4 - system
8 - volume
16 - directory
32- archive
64 - alias
128 - compress