hanyuupoke 09.03.2011 13:33 PeCa

PowerShell:
Const FOR_READING = 1
strFilename = "hosts.txt"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextStream = objFSO.OpenTextFile(strFilename, FOR_READING)
Do Until objTextStream.AtEndOfStream
strComputer = objTextStream.ReadLine
Wscript.Echo "Use WMI to get OS and SP versions from " & strComputer
Loop

UNIX Shell:
awk '{print "Use WMI to get OS and SP versions from " $1}' < hosts.txt

Feel the difference.

Recommended by: @eurekafag, @Basileus
1. werehuman 09.03.2011 13:39 lithium

> do until ... loop
Вот за это яйца оторвать и скормить создателям

Do you really want to delete ?