Script showing how to retrieve file properties.
strFile = Wscript.ScriptName
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(strFile)
strProp = "File Properties: " & strFile & vbLF & vbLF
strProp= strProp & "Name: " & objFile.Name & vbLF
strProp= strProp & "On Drive: " & objFile.Drive & vbLF
strProp = strProp & "Parent Folder: " & objFile.ParentFolder & vbLF
strProp = strProp & "Full Path: " & objFile.Path & vbLF & vbLF
strProp = strProp & "FileVersion: " & objFSO.GetFileVersion(strFile) & vbLF
strProp = strProp & "Size: " & objFile.Size & " B" & vbLF & vbLF
strProp = strProp & "Date Created: " & objFile.DateCreated & vbLF
strProp = strProp & "Last Accessed: " & objFile.DateLastAccessed & vbLF
strProp = strProp & "Last Modified: " & objFile.DateLastModified & vbLF
Wscript.Echo strProp