Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Do Until Loop Powershell

94 views
Skip to first unread message

Robbie45

unread,
Nov 24, 2012, 10:45:30 AM11/24/12
to
Hi there,

I`m a Newbie in Powershell , i have a small vbscript to convert it but i
dont how.

The VBSscript looks like this :
Dim t
t = 1
Do Until XL.Cells(t,1).Value = ""
If instr((XL.Cells(t,7).Value),"Opera\Opera\cache") > 0 Then
XL.Cells(t,7).Interior.ColorIndex = 43
Else
End If
t = t + 1
Loop


I want it convert to Powershell
I have look in Powergui and de Snippets do like:

do {
if ($true) {

} else {
}
} while ($true)


Please can you help me with that.

Thanks Robbie






Jürgen Exner

unread,
Nov 24, 2012, 12:02:54 PM11/24/12
to
On Sat, 24 Nov 2012 16:45:30 +0100, "Robbie45" <nos...@hotmail.nl> wrote
in microsoft.public.windows.powershell:
Why not use the straight-forward semantically equivalent WHILE loop?

UNTIL cond DO
{body}

is the same as

WHILE (NOT cond) DO
{body}

jue
0 new messages