Issue with commands in CMD

Rabmac

Reputable
Nov 29, 2015
1,325
0
5,960
Hi,

I am currently running CMD with admin privileges.

My problem is it won't run this command:
list disk
When I run this command I get the following message:

'list' is not recognized as an internal or external command,
operable program or batch file.

I then use this command to see the path:
echo "PATH"
and get the following message:

C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wind
owsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static

At this point I navigated to
Environment Variables
and updated the path with the following:

;C:Windows\system32;C:Windows\system32\wbem;C:Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\

Next I restarted the computer and then tried to run
list disk
again but got same message and
echo %PATH%
confirmed that it updated the path.

Any idea how I can fix this issue?

Thanks
 
Thanks for the help. I never realised that I had to run diskpart first but as you rightly said, this has resolved my problem. I will go back and undo the edit I made to the path now as I suspect it was not necessary.

Feel like a noob now lol.

QUick question about the path.

As things stand the path is:
C:\Windows\System32;
C:\Windows;
C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;
C:Windows\system32;
C:Windows\system32\wbem;
C:Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\100\DTS\Binn\

***It was originally
"%sysytemroot%" instead of C:\Windows

Should I change path to:
%SYSTEMROOT%\System32;
%SYSTEMROOT%;
%SYSTEMROOT%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;
%SYSTEMROOT%\system32;
%SYSTEMROOT%\system32\wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\100\DTS\Binn\