Return to site

How to get to root directory windows 7

broken image
broken image

You can do this by using the Set-Location command, as follows. dir m*Ĭhange the working directory to the Windows PowerShell working directory.

broken image

Obtain a listing of all files and folders off the root that begin with the letter m.

broken image

dirĬreate a directory off the root of C:\ by using the md command. Obtain a listing of all the files in the root of C:\ by using the dir command. The Windows PowerShell prompt opens by default at the root of your user folder.Ĭhange to the root of C:\ by entering cd c:\ inside the Windows PowerShell prompt. Open Windows PowerShell by choosing Start | Run | PowerShell.You will find that it is as easy to use command-line utilities in Windows PowerShell as in the CMD interpreter however, by using such commands in Windows PowerShell, you gain access to new levels of functionality.

broken image

In the following exercises, you’ll explore the use of command-line utilities in Windows PowerShell. Exploring commands: Step-by-step exercises