'How to correct VS Code terminal pointing to wrong folder C:\Windows\System32\WindowsPowerShell\v1.0?

I try to open a React project path in terminal window using VS Code's Open in Integrated Terminal (Ctrl+Shift+`), but it sets C:\Windows\System32\WindowsPowerShell\v1.0 as current directory and not the project directory.

It doesn't behave like that for other projects (folders & paths).
This happened after I moved the files to another folder on my PC.

Screen shot of VS Code context menu with menu item Open in Integrated Terminal and the TERMINAL window with Windows PowerShell output and the path set as current directory.



Solution 1:[1]

this is return to special characters in file name. characters like [ , ] made this error on VS code. git bash and CMD run well with them but vs code not.im not certain this is a bug or not

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andishe Abbasian