VBScripting (.vbs) Basic tutorial on how to get a file or folder to find out certain properties about it, such as its name, size, type, location, date, etc...
Code Example:
______________________________________________________
Option Explicit
Dim objFso, file, data
Set objFso = CreateObject("Scripting.FileSystemObject")
Set file = objFso.GetFile("C:\Users\Jeremy\Desktop\myfile.txt")
data = "Attributes: " file.Attributes vbLf
data = data "DateCreated: " file.DateCreated vbLf
data = data
آی-ویدئو