VBScript Basics, Part 30 | For - Each - Next - Loops
113 بار بازدید -
7 سال پیش
-
VBScripting (.vbs) Basic tutorial on
VBScripting (.vbs) Basic tutorial on how to use a For Next Loop, and For Each Next Loop, to loop things a certain amount of times or to loop through a set of objects in a group, such as files and folders inside of a folder.
Code Example:
______________________________________________________
Option Explicit
Dim objFSO, objFolder, x
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("C:\Users\Jeremy\Downloads\")
For Each x In objFolder.SubFolders
If x.Name = "Dad" t
7 سال پیش
در تاریخ 1396/10/06 منتشر شده
است.
113
بـار بازدید شده