20
2
I read this answer but it doesn't work for Windows PowerShell. How to change the drive?
EDIT:
Please ignore this question. I was trying to change the drive from C: to D:. The reason it wasn't working was that there was no D: on my computer. A really silly mistake.
1@Excellll It's not, the question you linked to talks about the native shell (cmd), not PowerShell. – Ohad Schneider – 2016-02-15T14:17:03.307
BTW, You should save as a *.ps1 file to run in PowerShell... i.e.
possible duplicate of Using cd Command in Windows Command Line, Can't Navigate to D:∖
– Excellll – 2013-06-23T00:52:47.770