Search found 239 matches

by goldyfarbs
Tue Feb 19, 2013 11:11 pm
Forum: PrimalScript
Topic: Question regarding Primalscript
Replies: 3
Views: 2677

Question regarding Primalscript

I find myself leaning towards notepad++ b/c I can easily collapse the if/else statements. I love primalscript and have been using it for 6 years, but I really would love this feature..

If I'm writing complex if/else statements it helps me keep track of them
by goldyfarbs
Tue Feb 19, 2013 9:28 am
Forum: PrimalScript
Topic: Question regarding Primalscript
Replies: 3
Views: 2677

Question regarding Primalscript

I'm wondering if i'm missing this feature, but in old VB script primalscript i was able to collapse function and it grouped them nice.

I see I can do that with powershell, but I was wondering if it can do if/else statements for powershell?
by goldyfarbs
Thu Jan 31, 2013 1:01 pm
Forum: PowerShell
Topic: The proper way to build custom objects inside for loops
Replies: 8
Views: 5566

The proper way to build custom objects inside for loops

Jv.

I will try again tomorrow from a different browser.

Yah. What happened to the boards. Ive been an active member for many years. It seems this board is just you.
by goldyfarbs
Wed Jan 30, 2013 12:12 pm
Forum: PowerShell
Topic: The proper way to build custom objects inside for loops
Replies: 8
Views: 5566

The proper way to build custom objects inside for loops

Ok, i managed to make myself more confused than normal.. (not hard) Im having a hard time grasping what you guys are saying. I'm dealing with Dataontap module so if you don't have a netapp it's hard to grasp the cmdlets. Let me turn this around and pretend i'm dealing with servers Let's say I have a...
by goldyfarbs
Tue Jan 29, 2013 11:19 pm
Forum: PowerShell
Topic: The proper way to build custom objects inside for loops
Replies: 8
Views: 5566

The proper way to build custom objects inside for loops

JV - I'm having trouble viewing your attachment.

Can you explain more about the $resultobjects =
by goldyfarbs
Mon Jan 28, 2013 12:38 am
Forum: PowerShell
Topic: The proper way to build custom objects inside for loops
Replies: 8
Views: 5566

The proper way to build custom objects inside for loops

David -

Thanks.. how about doing it with if/else statements.. That's what I was getting inconsistent results
by goldyfarbs
Thu Jan 24, 2013 2:08 am
Forum: PowerShell
Topic: The proper way to build custom objects inside for loops
Replies: 8
Views: 5566

The proper way to build custom objects inside for loops

So i'm delving into the realm of custom objects and Im enjoying it, but i'm not 100% sure of the proper way to handle custom objects inside of multiple loops... Basic idea is that I'm importing a list of filers and I want to report on shelf information, but im not getting consistent results... And a...
by goldyfarbs
Mon Nov 19, 2012 6:58 am
Forum: PowerShell
Topic: Problems with Do Until Loop
Replies: 3
Views: 3025

Problems with Do Until Loop

JV - I got so busy and I haven't checked back until today, but I sort of did that.. function CheckConnections { do { $i=0 $sessions = get-xasession | ? {($_.servername -eq $server ) -and ($_.state -ne "listening") -and ($_.sessionname -ne "console")} | ? {$_.state -ne "disco...
by goldyfarbs
Wed Nov 14, 2012 6:49 am
Forum: PowerShell
Topic: Problems with Do Until Loop
Replies: 3
Views: 3025

Problems with Do Until Loop

So, i'm getting stuck in an infinite do until loop.... And it's tripping me out a little.. Here's a snipit of the code. function CheckConnections { do { $i=0 $sessions = get-xasession | ? {($_.servername -eq $server ) -and ($_.state -ne "listening") -and ($_.sessionname -ne "console&q...
by goldyfarbs
Wed Nov 14, 2012 6:44 am
Forum: PowerShell
Topic: Basic For loop write-host to file..
Replies: 2
Views: 2065

Basic For loop write-host to file..

Yup.. I know that part.. I was just hoping for some magic.. no big deal