VBScript Basics, Part 27 | Get File - Folder (Properties)
215 بار بازدید -
7 سال پیش
-
VBScripting (.vbs) Basic tutorial on
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
7 سال پیش
در تاریخ 1396/10/06 منتشر شده
است.
215
بـار بازدید شده