💻 Software
Change directory in batch file with PowerShell
Fresh5 days ago
Mar 15, 202617361 viewsConfidence Score0%
0%
Problem
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. When I run , I'm still in q:
Error Output
c: cd c:\abc\def
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Change directory in batch file with PowerShell
Low Risk
While I agree that what you're doing should work, you can always try the Powershell cmdlet "set-location". It basically works the same way:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix