Montana-Media-Arts / 341-work

Resource repo and homework wiki for MART341-WebDev
https://montana-media-arts.github.io/mart341-webDev/
2 stars 2 forks source link

Command Line not working #12

Open estewart810 opened 7 years ago

estewart810 commented 7 years ago

My Command line wont work at all it keeps saying "not recognized as internal or external command, operable program or batch file". I watched some tutorials and tried resetting the path in the environmental variables to "C:\Windows\System32". But it still keeps giving me the same message. Any clue how to solve this problem ?

timkolberg commented 7 years ago

might I ask what specific command(s) you are trying to execute? Usually that error means the syntax for the commands you are trying to make are not correct. Also are you typing your commands in Command Prompt or Power Shell? If you're in Command Prompt Here's a list of available commands/syntax: https://ss64.com/nt/ If you are in PowerShell here's a list of commands: https://blogs.technet.microsoft.com/heyscriptingguy/2015/06/11/table-of-basic-powershell-commands/

michaelmusick commented 7 years ago

Thank you for the info Tim!

Emmanuel, did this help?

estewart810 commented 7 years ago

I am using command prompt, it happens when I try pwd. C:\WINDOWS\system32>pwd 'pwd' is not recognized as an internal or external command, operable program or batch file. C:\WINDOWS\system32> PWD 'PWD' is not recognized as an internal or external command, operable program or batch file.

and when i try to change directory, I get this.

C:\WINDOWS\system32>cd desktop The system cannot find the path specified.

C:\WINDOWS\system32>

I tried resetting my computer. So far it hasn't helped.

michaelmusick commented 7 years ago

Desktop is not in your current path.

Type ls or dir to see the directories you can move to.

It looks like you are in an admin session of command prompt.

Try opening power shell. What is the default path for that program (ie type pwd and tell us where you are at?)

estewart810 commented 7 years ago

Ive switched to using Powershell, and its all working perfectly.

Thanks!!

michaelmusick commented 7 years ago

Awesome!