DOS commands


J

jco

Hello,

Can someone advice me? for some reason my DOS is not
taking any of my commands, the only one that it accepts is
"DIR", it doesn't take "ping", "netstat", etc....

what do you think the problem is? What should i do to
fix this?

Thank you.
 
Ad

Advertisements

G

Guest

Go to Control Panel | System then the Advanced tab and clcik on Environment
Variables. Make sure the System Variables | Path includes
%SystemRoot%\system32;%SystemRoot% Also look at the user variables and be
certain there isn't a PATH statement overriding the system variable.
 
C

cts

I am having the same problem. Any program run from the
Command prompt is not recognized. For example:

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

David Wang [Msft]

Type
PATH

On the commandline and give what it returns.

Make sure that IPCONFIG.EXE can be found in the directories listed by PATH.
If it cannot be found, that's your problem -- you need to fix your PATH.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
I am having the same problem. Any program run from the
Command prompt is not recognized. For example:

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

Mark V

In said:
Go to Control Panel | System then the Advanced tab and clcik on
Environment Variables. Make sure the System Variables | Path
includes %SystemRoot%\system32;%SystemRoot% Also look at the user
variables and be certain there isn't a PATH statement overriding
the system variable.
The User value is appended to the System (machine) value for PATH.

It may be necessary to check the registry for an incorrect value
Type. OP, after you checked the variables say what you see from a
cmd prompt when entering PATH
 
D

Dave Patrick

Check that "Path"
found at
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
is a type Reg_Expand_Sz string and not type Reg_Sz

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect


:
| I am having the same problem. Any program run from the
| Command prompt is not recognized. For example:
|
| C:\>ipconfig
| 'ipconfig' is not recognized as an internal or external
| command, operable program or batch file.
 
Ad

Advertisements

T

Torgeir Bakken (MVP)

jco said:
Can someone advice me? for some reason my DOS is not
taking any of my commands, the only one that it accepts is
"DIR", it doesn't take "ping", "netstat", etc....

what do you think the problem is? What should i do to
fix this?
Hi

This is usually caused by two things, either that vital system folders
is missing from your path, or that the value type for the path entry in
the registry is changed from the "REG_EXPAND_SZ" format to "REG_SZ".
Note that sometimes both situations can be present at the same time.

The easiest way to check to see if any of the problems above is
relevant for you, is to open a command prompt and take a look at
the path element in the environment:

1.
Open a command prompt (e.g. select Start\Run in the menu and
then run cmd.exe

2.
Type "path" (without the quotes) and press enter.

As part of the path listing (preferably at the beginning), you should
see the following three folders:

C:\WINNT\System32;C:\WINNT;C:\WINNT\System32\Wbem;

(where "C:\WINNT" is the folder to you Windows folder)

3.
If you don't see those folders, do the steps in both A) and B) below.

If you see them, but they are containing the environment variable
%SystemRoot% as a literally part of the name and not the actual
windows folder name itself, like this:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;

you need to do the steps in B) below.


==================================================
A)

Add missing vital system folders like this:

Control Panel - System - Advanced -
Environment Variables

Find PATH under "System variables" and select Edit, add this line at the start:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;


==================================================
B)

To verify that the registry value for the path is still in
"REG_EXPAND_SZ" format and not "REG_SZ", and how to fix it
if necessary, see this link:

http://home.comcast.net/~stewartb/cmdprompt.html#6
 
Ad

Advertisements

J

jco

I have to thank you much, your responce was very helpful.
in fact you are the one who helped me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top