Powershell Cd With Spaces

Powershell Cd With Spaces

In Windows PowerShell, when you use the cd command to change the current directory, you can include spaces in the path. However, you must use quotation marks to enclose the path.

For example, if you want to change to the directory C:\Program Files\Windows NT, you would type:

cd “C:\Program Files\Windows NT”

If you want to change to the directory C:\Program Files (x86)\Windows NT, you would type:

cd “C:\Program Files (x86)\Windows NT”

How do you cd to a folder that has a space in PowerShell?

In PowerShell, you can use the cd (change directory) command to navigate …