Drives drives is very handy tool you can map and access the drives.
Partial drives like ordinary drives and work with them to create different items.
They're like folders and files.
So let's get Pierres get pierced provider shows you what you can where you can create pill's drives
and get people drive shows you how to drive.
You have already mapped to your system as you can see there is a certain drive environment drive function
drives etc..
So let's get the contents of each year of this register register branch EGK see you and we can get this
files and you register Riklis.
Let's get child item command like a child tied to a MAJOR see you double corn.
So get child dies.
Or for some registry change which is the route you can specify to and to and to it with ordinary way
of forward Taipan like if you have control panel you can access control panel branch and in it you can
enter power configuration branch and you can list it.
You can modify it and do whatever you need to do so you can also.
You can also map this branch if you work with that very frequently.
Let's get command and see what we can do with
that.
So we retired get command Pierres drive for us so to see what we can do with Pia's drives.
So as you can see we concert people's drive new people's drive and remove people's drive.
Not many but that's enough for our purposes.
So let's create and you map and your power shall drive with command in new peers.
Dr. Phil. Let's list this registry key a control panel and see what we can map say.
Let's say that we work with desktop or branch very often and we don't need to type it so frequently
we can just map the branch and refer to it like we refer to any other drive.
So let's just get the list of items here.
What we have here control panel box less desktop.
And now we can create a new piece Dreifuss you know your peers drive command we need to specify its
name so let's say it will be it will be called Desktop and we need to specify a root of.
Sorry we have to specify as provider in this case it's the registry.
So if you've heard if your work is in its operating system then it will be
your disk system.
But in this case it is.
It is a registry.
So we need to provide it.
I've pressed EFT F-8 without provider and you have to specify a root of this busdriver.
It will start from a control panel box left desktop as you can see it is mounted now and you can refer
to this new drive by just its name.
Let's list pill's drives me half right now.
And as you can see we have a desk top in place and two we can refer to.
They can list the files in it we can create folders create registry key is here and we can create Leif's
of registry keys modify the properties of registry keys etc..
So let's get child item up for this drive as you can see we can list all the folders we have and this
drive found the path to it.
Sorry.
So let's create a new subfolder in this newly created drive we all created in desktop Peares drive and
the folders name will be say turn.
I'm not sure you can name it whatever you want but let's name it tempt users.
So in a registry branch will create temp users folder and it's really to specify its diaper.
In this case it's item type folder.
So as you can see you can freely create any folder any any number of folders in this drive.
So you want to create user while in this folder or another folder we can do it without Surak.
We can do it without any difficulty.
So let's let's create another folder in piercers folder like yours or one for example and it's item
type also will be folder as you can see no problem.
It is created.
You can create user too and you can automate it if you if you need for example several users in this
folder.
So you can also get information on this folder as you remember we have a wonderful command get fast.
Let's yes First let's listen to the contents of this folder as you can see we have user one and user
too.
And you can refer to as two as two ordinary drive desktop double slash Suria double colon backslash
Stemp users.
And let's get right man on user 1 or on the term users you can refer to the properties of this item
sound and do everything you can do as we use ordinary files in the file system.
So let's get item.
You can also use another command to get item property for for this folder and to get item to see the
properties of this folder.
And let's check with Get member command.
What other properties of this registry folder and you can see it's.
It refers to registry key and to it it is.
And it is concern and registry modifying So it's not it's it's not a file system but it's registry registry.
You are find registry.
So no let's create a new poll power shell drive for file system.
I'll take some folders just for example.
But if you work with some folders very frequently you can you can create a drive for it and refer to
it as a two separate drive and power show.
So I'll take this pass and I'll call it
net version for just just for testing purposes.
And you have to specify that it is a file system and you also need to specify the route to this file
to this partial drive.
In this case it's this long pause.
And if you want to you can specify persist in this case it will give an error because it concerns only
a network network mapped drives.
And also please note that if you specify persist key it will show up or just in your Explorer.
So it would show up here if you specify it and mapped network drive but now I'll I'll map just without
Pearse's parameter or a local folder for heaven it's like a power shell drive.
So as you can see it is mapped and it has got a name now to V 4.
And you can create modify and delete items in this drive.
Let's let's create a new folder in it to this new item command.
So we have to refer to the name we have specified previously.
So new item that we are for.
And let's give it a name like temp folder.
And I am not sure any name and item timer should be directory should be a folder in this case it gives
us an error because we have two hours to type directory not a folder.
So that's created.
OK.
So it's done it's created.
And as you can imagine you can automate any of these commands with the help of partial.
Let's create some file in this folder to have another item type in a directory but file type.
So let's create a file file once a file one that takes the and it should be with file type file.
So we run this command successfully created.
And as you can see it's Lenz's 0 because it's empty.
Let's add some some contents to it.
As you remember we call content content with content command and Vinit to specify which file we add
content and when to specify the value.
So well you double quotes.
Here comes the information that should be added to the file.
So this is testing for.
So this information will be added to this file.
Check it if it is changed.
So as you remember we got gone gone tonight with the constant command to check what what is in this
file so that's Robert as you can see they have this content added to place.
Please note that ad content just adds content to the file but said content.
Let's let's do it set content modifies the files and rewrite the file so it writes the new content and
deletes the previous content.
So let's check it.
So the content of the file value and new information let check it as you can see.
This is new in Forth so if you want to add to this information already existing information will need
to run at content.
If you need to rewrite you need to set the count and let's get -- drive again.
You have to check our people's drives to fulfill the information.
So if you want to delete existing people's drive for you just to use remote command let's remove dystopias
drive.
So you don't need it anymore.
Let's remove it.
So you type remove peer's drive name and the name of peer's drive.
In this case it's desktop.
Let's run it and check again.
So as you can see it is very handy and you can use it in your.