Dim fso, MyFile,tmp,i
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile= fso.OpenTextFile("c:\test\log\tmp.txt", 1 , False)
i = 0
Dim AllDisk()
Do Until MyFile.AtEndOfLine
tmp=MyFile.ReadLine
If tmp="ls /dev | grep -i sd[a-z]$" Then
else
Redim Preserve AllDisk(i)
AllDisk(i) = "/dev/"&tmp
i = i + 1
End If
loop
i = i - 2
Redim Preserve AllDisk(i)
MyFile.Close