I need to changed directory using batch file in PowerShell.
Let's say the batch file named go.bat has the two lines of code. And I'm in q: directory.
c: cd c:\abc\def
When I run
go.bat, I'm still in q:
In Powershell, I needed to name the batch file extension as
.bat, I got errors.