Net, bcdedit commands won't work

Status
Not open for further replies.

synor

Distinguished
May 19, 2011
26
0
18,540
Hi,

When I open the cmd prompt and just type "net" or "bcdedit", I get those errors

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Nicolas>net
'net' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Nicolas>bcdedit
'bcdedit' is not recognized as an internal or external command,
operable program or batch file.

Does anybody have a solution please?
Thank you !

 
Solution
Your PATH variable needs to include the C:\Windows\System32 and C:\Windows folders, that's probably why it's not finding those commands.

I have no idea why it got screwed up, but you can fix it by:

- Click Start, right-click "Computer", and select "Properties"

- Click the "Advanced System Settings" in the left pane

- Click the "Advanced" tab

- Click the "Environment Variables..." button near the bottom of the dialogue box

- Change the value of the PATH variable in the upper box if it exists there, or in the lower box if it doesn't. Be sure to separate each folder name with a ";" (semicolon) character.

Jim_L9

Distinguished
Mar 10, 2006
1,183
0
19,360


What do you get for the Path+ if you type "set" at the cmd prompt without the quote characters.
 

synor

Distinguished
May 19, 2011
26
0
18,540
Path=C:\dev\tools\php-5.3.1;C:\dev\tools\MySQL Server 5.5\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

Oh... this is because I installed Apache on my computer to study how a server works..?
 
Your PATH variable needs to include the C:\Windows\System32 and C:\Windows folders, that's probably why it's not finding those commands.

I have no idea why it got screwed up, but you can fix it by:

- Click Start, right-click "Computer", and select "Properties"

- Click the "Advanced System Settings" in the left pane

- Click the "Advanced" tab

- Click the "Environment Variables..." button near the bottom of the dialogue box

- Change the value of the PATH variable in the upper box if it exists there, or in the lower box if it doesn't. Be sure to separate each folder name with a ";" (semicolon) character.

 
Solution
Status
Not open for further replies.