And this lesson will continue with certain selecting and finding different objects for your own it's
all at church and europaeus drive for our purposes to refer to this place try and get some child items
from this folder.
So I'll share it with the name and it will be.
Pierce provider file system and the root of it all will find some folders a lot of files for our testing
purposes so let's find a know dotnet folder and there are a lot of lots of files there and we can manipulate
them and do some different kinds of operations.
So the root of this is Dr. Phil big windows rentals Dot Net framework and so on.
This is for real be our work in folders.
So now let's get to that do it a bit larger.
Let's get child tired old for this newly created Pia's drive for you referred to as by by its name term.
CONAN And let's make a pie get mamber to see what we can do with this with this object.
So as you can see we have different properties some mindsets which could be used on these objects.
Let's let's sort by member type and get on the properties to see what we can do not not do so to see
what scribe's this object.
So there are several properties like land's name full name extension cetera so we can work with its
properties and sort of select the files.
Regarding its properties Let's get child item pipe.
After that who will perform this the next command select object and we want to select object by its
property.
Let's say full name and lands and maybe after that as you can see we get all the full names of the files
from this Pia's drive from this folder and if we want to get an extension we can type Acoma extension
and then we will get an extension of the files which are located in this folder and if we wanted to
have some more properties like Klan's we can add that after coma and space as you can see a lot of a
lot of faction's could be done if you know the property of the file and where to get this property you
can get files specific files which you need.
Now if you want to have some new property you can create it by yourself and you created with the help
of the sign then you open this break its name and that stands for name name will really be equal to
to the name of the colon or of the property you want to create.
I'll give it a name like the size in kilobytes.
Say you want to to to view the property lands in kilobytes So let's create a new property for these
files and it will be named sites and kilobytes and on it it should be done like this.
So you give it a glance and and divide it by 24.
So there's a dollar sign and underscored Daut means that you're if you're the object with which comes
from the pipe which was before so it refers to each object of this pipe.
And if you want to refer to the subject to you you type it like this as you can see we have another
column here which is exactly what we wanted to see.
We wanted to see lengths in kilobytes and we get it.
Let's let me show you another another way of typing this referring to each each object of the piper.
You can type it like this.
You your type dollar sign and item you can select.
You can pick up.
And in my set of type in reference to each item each each object of the pie dollar sign underscore or
dollar sign.
Item.
Let's continue and go even further.
Let me
admins let me sort this.
This results by property name so you can sort by any properties you remember if you want to sort by
extension or Lanz or any other property which this object possesses.
You can sort of like the size in kilobytes you can sort by your new property which you've already just
created and that proves that if you if you create it it has all the qualities of a real object that
you can search by property and you can manipulate it like real objects.
And so let's go even further on that select object and we'll select first 15 items in this long list.
As you can see with it we can see we can find any number we want in first place.
First 15 items last 15 items if you want to see the tail of the results it will give you the tail of
the results.
You can you can also skip some items if you say want to make some man pager or a pager like system for
example in first in first line of your skip first 15 item then you skip and so first 59.
And then you skip first 15 item so.
So to say it will have a pager like system you can skip and then show fills 15.
So if you want to skip just you just type skip 15 items.
Let's move on and let's
let's.
Let me introduce a new comment to their object where object refers to some properties of the object.
For example you want to find two to find all the objects which are greater than 15 kilobytes or you
want to find all the objects Rylance which is.
Which equals 15 kilobytes.
A lot of operations here as you can see and to the most popular are greater than value equals longer
them etc..
So let's find all the objects which are greater than one 10000 kilobytes or whatever you want.
Let's add another zero and we'll get another list of all of this operation.
Let me copy it and you can you can use this vair object by and a property of the object of this set
you can find extensions which are equal to dot Dia lel or dot X or any extension which you want to find.
Right now it's very handy.
Operation you can find whatever you need right now.
Now let's get let's type another command get process and get for example get fields get mamber to see
what properties and methods do we have for that process.
And let's get member for
Paul
Propertius will give us an A.
It was incorrectly.
So let me let me check it and retype it.
Select object to a
property.
Yes that's right again.
Sorry.
Sorry for the child retype it because it wasn't correctly.
So we have to select to get member by its member type property not Massad but property.
We have to see what properties do we have.
Forget ProBusiness and let's say we want to select all the processes and it's virtual memory size which
Prose's consumes how much memory.
So we type got process where where object then does property
and I'll have to compare this property name.
It's quite a long name virtual memory size.
And it should be greater than let's say 2 million or 20 million bytes as you can see we can sort
our Get process results and to get all the results we need.
We need all the proto processes which are greater which consumes more than 20 million kilobytes.
Let's run another command like a good process and see what prophetesses do we have right now running
on the system and let's say we want to find all the processes which which begins with three letters
or some other letters so we can do this type get protests pipe row object then
it's property.
So where object and to its property the name and it should be like starting with as we.
So you have to type property the name and like Desch like that will give us all the names which starts
with as we letters as you can see we can filter freely filter any results with this command where objects
it's very candid.
You can filter the names starters a and any any results which you need right now.
Now let's get child item for temp folder and to select all the objects which are let's say we want to
select different different objects properties to select different object properties you need to write
them down to type them down in break this figure break it's figurative.
Break.
And here you can give some more complicated request for for your objects like extensions should be like
a PLL and it should be like let's say
it should have a name which starts with some specific letters.
Let's say
let me think about it.
Let's say it starts with a letter right and it should be.
It's L'anse should bear more than some some length which you want to find.
Let's say it should be greater than
10000 kilobytes greater or equal.
This means greater or equal.
So you can find objects with this complicated request.
Sorry I have made a mistake.
If you want you can find true just now.
And here it is to stop it to run in your search.
You can press control control see as usual.
And here is my mistake.
I've missed on the score side.
Let's run it once more.
And as you can see it has found all the results which match my request.
Extension is DL and its name has a.
It starts with a letter and its length is greater than 10000 kilobytes.
And I can show you an other method.
Now another way of typing this command if you type it just where without the object it will be working
just fine as well.