 Welcome back team. It is your biggest fan the real Casadero and if you are ready to step out of tutorial purgatory and Start using your knowledge for good and when I talk about good I'm talking about you start using your knowledge for yourself on yourself. This is the video for you in this video I'm gonna show you how to do something super awesome with PowerShell on any system less roll team So team we're gonna hit the windows key and we're gonna type in a terminal Terminal and this is gonna open up the Microsoft terminal and the reason why I'm using terminal now is because they have tabs So we can open up multiple tabs. We can switch back and forth between tabs We can hit control w to close tabs and this is just super awesome So we can do a dir here and then we could be like oh, I want to go do something else So we can go just control T to make another tab and then we can go do our other thing so we could do like a CD Home and we'll do a dir there. So this is more stuff here We can do a control tab and then when we're done We can just close that out and now we're back where we need to be so I'm gonna put a clear in there So that's one thing if you want to get the windows terminal application Just hit your windows key and type in store and when that pops up You're gonna go up here to the search and you're just gonna type in terminal Terminal boom boom boom boom enter and then it's gonna pop up here with terminal and you just click there and Install and then you'll be good to go to run it the same way I did just by hitting windows and typing in terminal there Also, if you would like to follow along you want to go out to the internet and you're gonna want to grab Yourself a few tools and those tools are gonna be visual studio code git and PowerShell core now. I'm using PowerShell core here That command you just saw me do tools that is an actual function that I wrote and I'm gonna show you how to write your Own function today to do the same kind of things team So you want to grab yourself a copy of PowerShell core You can get that over at github.com forward slash PowerShell forward slash PowerShell And when you get there you just scroll down read through it a little bit check things out read it up And then pick the operating system that you that you have And follow the instructions install it and you're good to go Then you're gonna grab yourself a copy of visual studio code and visual studio code is just I Write everything in visual studio code everything everything The the features you can move lines around you can select whole paragraphs and move them You can do everything in here and you can program in any language It's just a fantastic code editor a bunch of plugins and that's what I'll be using in this video and for All my videos for the foreseeable future I don't know what's gonna come out next but when it does I'll know about it and I'll use that but for now Visual studio code is it and last but not least we are gonna be using git to track versions of what we make here And that is it team just install git git is a version control tracking system And if you are not familiar with git what you want to do And well, and if you're interested in learning a little bit more about web development You're gonna want to go check out my last video card in the description above my head team and you can You will get a crash course a crash course You're gonna build a whole website. You're gonna learn HTML. You're gonna learn CSS. You're gonna learn you're gonna learn about What was it you're gonna learn about git because I'm using git throughout the whole thing to save everything So it's just a fantastic course 100% free team go check that out And it will also it will also be available at the code at 365 startup lab calm if you would like to support the channel. I Would appreciate it team. It would be fantastic But that is it visual studio code PowerShell core and get what you can get over at git dash SCM Com links in the notes below. So we're gonna close this with the alt f4 And it's gonna ask us if we're gonna close all tabs. We're gonna say yes We do and now we're back here inside of PowerShell and what we're gonna do is we're gonna type code And we're gonna type dollar sign Profile and this is gonna open visual studio code with our PowerShell profile now my PowerShell profile is full of stuff There's all kinds of stuff in here team But you you may not have nothing in yours but I'm gonna show you how you can put stuff in your PowerShell profile and In actually have it do cool stuff. All right team. So check it out. So what we're gonna do is We are gonna make a function and this function is gonna build new web projects for us So we're gonna go down here and we're gonna write function And we're gonna write new We're gonna call this New idea So we'll put new idea and that's gonna be our function name and our function is gonna take in a parameter We're gonna give it a angle bracket and The first parameter is going to be the project name. So project Name and that's gonna be it. So we'll just have project name here and actually no This project name is gonna go outside of these square brackets and inside of the square brackets We're gonna put the type and the type is going to be string So what we're doing is we're telling PowerShell That hey When we run this function expect to see a parameter in the form of a string So we don't want any numbers or anything. This is going to be a string of characters And then when you get that function, you're going to do something with it I mean not when you get that function But that when you get when this function is called you're going to do something with this string that was given That was given with that was given as a parameter That was given with that was given as a parameter So when I gave me going to even do this team what we're going to do is going to take this out Get rid of that and down here. We are just going to put a p a r a m And we're going to put a parentheses there and inside of that We are going to put a variable and we're going to call this project Name and now underneath that All right team, then we just go outside of our parameter like that and we say Mkdir and we are going to make that directory after this Project name that we have here then we're going to add a comma and we're going to make another directory But it's going to be inside of this directory. So maybe Just to be safe, we're going to put it on this line. I'm going to do a make dir and then we're going to do a project name for slash CSS and we're going to do the same thing again And this is going to be a j s And we're going to do the same thing again. This is going to be a i m g and Again, and this is going to be a d o c s And I think that's it. I think that's it. So now we've got All these directories and now we're going to make some files to put in those directories. So down here We're going to scroll down just a bit and we're going to do A how do we call this? How do we call it new item? So new Dash item And with our new item, we're going to make a new item in our projects So we'll put a dollar sign project name Ford slash c s s Ford slash uh, and this one is going to be Oh main dot c s s. So we got main dot c s s And then we'll do we'll duplicate that and this is going to be main dot j s j s And over here This is going to be a j s And I think that's it for that right there. So we got our main. Oh, we need an index And so our index is just going to go right inside of our project name So we can duplicate this right here by hitting uh alt and shift And going down and so we'll just take this out and we'll move this back up to the top And so now we've got oh, and we don't want it to be main dot j s. We're just going to make this index dot HTML all right And so now we've got our function when we run it when we say new idea and we give it a name Is going to go it's going to create all of this stuff So we'll save and then we'll go back over here into our terminal and we'll type exit to close that out And now we'll hit windows bring up the terminal again And we'll set it for power shell core, which is what i'm using And then the only reason why I say this is because You're going to have multiple profiles up here. You have your power show core profile if you install power show core You'll have your windows profile blah blah blah Um, let's use your power show core profile But if you if you use your Windows profile, which is a different profile than anything that you did in your power show core profile won't be in your other profile So you'll have to copy it over. So just be aware of where you are when you're doing all this stuff team All right, so we're back in here and now we can run the command. What was that command? New idea. So we'll type new dash and then we'll hit uh-oh Let's go back. We'll go new Dash id and then we'll hit tab. So we got new idea. We hit enter And it told us that something went wrong cannot buy an argument parameter path because it is no At user and then it tells me exactly where we are in my power shell profile Line 134 character 11 make dir project name. So it says cannot buy an argument to parameter path because it is no So I guess when we go to make dir Uh, we haven't taken something in yet. So let's go back and take a look at this. So we got Our fun. Oh, so it doesn't make dir because we didn't give it a name to make So if we go back if we go down here and we do a dir Where did it put it at? Sandbox, uh, we didn't give it a name. So it didn't make it Well, actually, hold on. Oh, it just made it on the root drive. So if we go to uh cd Dot dot to go up one directory into a dir We have all these random files here. So we got the css is docsis image is js This index dot html and that's because it didn't know where to where to make those files But check this out team if we if we did it like this. So let's just make a uh Let's just go back into the real casadero folder. So we'll cd the real casadero dir because it's it's cleaner in there and we'll go into Do a dir we'll go into the The construct so we'll cd into the construct And then we're going to this code directory. So we'll cd into code And there's nothing there's nothing else in here. So if we do a New dash idea and actually let me clear the screen so you can see so dr There's nothing in here. We'll clear the screen and if we do a new dash idea and we give it a name of It's awesome. Let's see. It's awesome Um Enter and then we do a dir we have this it's awesome right here team So that is how we can and if we go into it's awesome cd slash is awesome All our files and folders are there. So that's just one way on the command line We can write a script to do something cool. So here. Let's let's let's go back and create another script Right, so we'll alt f4 to close out of this and then we'll just go right down here And if you type in function and youtube And some opening and closing curly brackets Like this and then do a start dash process H well, you need uh some quotation marks and do a https semi colon four slash four slash www.youtube.com And hit control s to save all of this alt f4 to close it And hit your windows key and open up your terminal When you go back you can type youtube And youtube will open on the screen. Well, hold on YouTube opened somewhere else for me. Let me go back and find this Where are you? Okay, there we are. So check this out team. So now we'll close this will alt f four Close all those tabs and now we'll clear this out and when we type youtube It will come right here to our youtube page And so you can make functions in there that will do Anything team absolutely anything you can imagine And if you would like to dig deeper into powershell head over to Coding 365 startup lab calm and check out the free powershell primer where you can go in there and I give you some cool Introduction information of powershell Um in how just to get started with powershell And if you want to support the channel team all you have to do is go back and sign up for the code 365 startup lab 99 bucks for lifetime access right now and There's going to be more content coming team right now in here. I'm working on html and we're going to go deep We're going to cover all of the prime stuff you need to know when it comes to html But not just about building web pages But about how to build and structure those pages in order so they get traffic from the internet And you can code For fun and profit team building your own sites to make your own money So you don't have to depend on someone else after that We're going to get down into the nitty gritty of css And we're going to cover what you need to know in order to lay out your page to look Any way you like and after that we go into javascript where you learn to code and build Your own web applications team But you can also check out write code drink coffee dot com where you can find gear for coders Like these hats that we have here or some stickers and mugs All right team and if you don't want to do any of that stuff Just leave a thumbs up on the channel and subscribe. We're growing every day. We're at about 5,800 subscribers Now in the more subscribers the better share the videos Across the internet team and by all means go out and use what you've learned here to build your own thing team I'm your biggest fan the real casadero team until next time. Keep on coding. All right time to get back to