hello everybody,
I would like to know how to use for...to.. next in stead of for each..next
for example :
I want the same result but with using For..To..Next
thank you all
I would like to know how to use for...to.. next in stead of for each..next
for example :
Code:
Set objFSO = CreateObject("Scripting.FileSystemObject")
For Each objDrive In objFSO.Drives
WScript.Echo objDrive.DriveLetter
Next
I want the same result but with using For..To..Next
Code:
Set objFSO = CreateObject("Scripting.FileSystemObject")
nn = objFSO.Drives.Count
For i=1 to nn
WScript.Echo ............. ' I want to get same result obove
Next
thank you all