Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


newbie: something simple...

 
Logged in as: Guest
arrSession:exec spGetSession 2,5,39500
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Windows PowerShell >> newbie: something simple...
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 newbie: something simple... - 11/7/2006 6:06:30 AM   
  fixitchris

 

Posts: 2
Score: 0
Joined: 11/7/2006
Status: offline
dir | ? { $_.psiscontainer }

dir | where {$_.mode -match "d"}

I took these two off the MS blog.  But I get no output. Just goes to the next prompt.

What's the deal???


Chris
 
 
Post #: 1
 
 RE: newbie: something simple... - 11/7/2006 6:14:58 AM   
  fixitchris

 

Posts: 2
Score: 0
Joined: 11/7/2006
Status: offline
hmmmm... now it works.   ODD!  I installed PSIDE and voila.

What is the $_.   all about?

(in reply to fixitchris)
 
 
Post #: 2
 
 RE: newbie: something simple... - 11/7/2006 7:01:14 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
$_ is pulled in from perl (or a similar scripting language). In the case of PowerShell, it essentially is a reference to the current object in an iteration.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to fixitchris)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Windows PowerShell >> newbie: something simple... Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts