Excellent. Thank you very much.
On Thu, Mar 28, 2013 at 11:47 PM, Michael B. Smith <mich...@smithcons.com>wrote: > The issues generally only appear when you specify other flags. J**** > > ** ** > > For v2, what you’ve suggest is the proper way.**** > > ** ** > > *From:* Richard Stovall [mailto:rich...@gmail.com] > *Sent:* Thursday, March 28, 2013 10:46 PM > *To:* NT System Admin Issues > *Subject:* Quick Powershell question**** > > ** ** > > Powershell 2.0 on Win 7 / 2008 R2**** > > ** ** > > Is there a better way to non-recursively return the contents of just files > from a particular directory than the following:**** > > ** ** > > get-childitem c:\some\directory | where{!$_.PsIsContainer} **** > > ** ** > > ?**** > > ** ** > > I only want the file contents of c:\some\directory. If there are > subdirectories, with or without contents, I don't want them or their > contents in the output. I've tested this and it seems to work, but I've > seen some Interweb posts talking about flaky behavior in get-childitem, so > I thought I'd ask.**** > > ** ** > > Thanks, > RS**** > > ** ** > > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ > ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ > > --- > To manage subscriptions click here: > http://lyris.sunbelt-software.com/read/my_forums/ > or send an email to listmana...@lyris.sunbeltsoftware.com > with the body: unsubscribe ntsysadmin**** > > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ > ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ > > --- > To manage subscriptions click here: > http://lyris.sunbelt-software.com/read/my_forums/ > or send an email to listmana...@lyris.sunbeltsoftware.com > with the body: unsubscribe ntsysadmin > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com with the body: unsubscribe ntsysadmin