question

FabioB-6264 avatar image
0 Votes"
FabioB-6264 asked FabioB-6264 commented

WIndows Terminal is throwing me an error 0x80070002 when opened via right click.

Hello,

a while ago I accidentally damaged my Systempaths and slowly resolve all the issues I got from that. I can open the windows terminal from the start menu and it works just fine. However, when I am in a directory and want to open it there it is telling me that cmd.exe cannot be started. Because of a wrong path variable. I already found the cmd.exe file on my machine, but I do not know the variable name I need to set can anyone help?

To be clear I am talking about the WIndows Terminal, not the cmd.exe terminal.

windows-10-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered FabioB-6264 commented

Hello,

Did you register cmd.exe in environment variables if not try below

Type Edit environment variables
Open the option Edit the system environment variables
Click Environment variables... button
There you see two boxes, in System Variables box find path variable
Click Edit
a window pops up, click New
Type the Directory path of your .exe or batch file ( Directory means exclude the file name from path)
Click Ok on all open windows and restart your system restart the command prompt.

--please don't forget to upvote and Accept as answer if the reply is helpful--

Thanks,

Mohammed S

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,

I have added it to my user variables, however, in the system variable, the PATH variable can only hold one entry. How can I added it then there?

0 Votes 0 ·