VBScripting (.vbs) Basic tutorial on how to set or check attributes of a file, such as hiding and un-hiding files and folders, archiving, setting to read-only, etc...
Code Example:
______________________________________________________
Option Explicit
Dim objFso, objFile, objFolder, s
Set objFso = CreateObject("Scripting.FileSystemObject")
Set objFile = objFso.GetFile("C:\Users\Jeremy\Desktop\test.txt")
Set objFolder = objFso.GetFolder("C:\Users\Jeremy\Desktop\test")
'To hide and unhide a file.
If objFi
آی-ویدئو