Retrieves File Properties such as: creation time ?
As a part of my test I have to check whether:
1. folder X is exists
2. File A was created
3. Time creation of file A
I believe the FSO is the solution for that, but, how can I get the Creation Time of the file?
Have a great day!
If The file name is not known, how can I get files from a certain folder?
Lets say in folder A there are X files (With unknown names) and I wanna get them all, one by one and check their name and creation date.
How do I get these files with no idea what thier names are?
Public sub IsFolderExist(Byref SubStatus,Byval FolderPathName)
SubStatus = MicFail
Set fso1= CreateObject("Scripting.FileSystemObject")
If fso1.FolderExists("FolderPathName") Then
SubStatus = MicPass
I sent the Folder Path, E.g: "c:\foder1\Folder2"
in order to check whether folder2 exists.
And, eventhogh it exists, I get the "Not Exists" msg.
You can make your code more simpler with a function.
<font class="small">Code:</font><hr /><pre>
Public Function IsFolderExist(FolderPathName)
IsFolderExist = False
If CreateObject("Scripting.FileSystemObject").FolderE xists(FolderPathName) Then IsFolderExist = True