View Full Version : DOS commands


jco
02-29-2004, 03:08 AM
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.

02-29-2004, 03:31 AM
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.

"jco" <jcotaker@yahoo.com> wrote in message
news:3d9601c3fe71$424a21e0$a501280a@phx.gbl...
> 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.

02-29-2004, 03:31 AM
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.

"jco" <jcotaker@yahoo.com> wrote in message
news:3d9601c3fe71$424a21e0$a501280a@phx.gbl...
> 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.

cts
02-29-2004, 05:54 AM
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.


>-----Original Message-----
>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.
>.
>

cts
02-29-2004, 05:54 AM
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.


>-----Original Message-----
>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.
>.
>

David Wang [Msft]
02-29-2004, 07:55 AM
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.
//
"cts" <anonymous@discussions.microsoft.com> wrote in message
news:14c801c3fe88$7e6bd7b0$a601280a@phx.gbl...
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.


>-----Original Message-----
>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.
>.
>

David Wang [Msft]
02-29-2004, 07:55 AM
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.
//
"cts" <anonymous@discussions.microsoft.com> wrote in message
news:14c801c3fe88$7e6bd7b0$a601280a@phx.gbl...
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.


>-----Original Message-----
>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.
>.
>

Mark V
02-29-2004, 08:22 AM
In microsoft.public.win2000.cmdprompt.admin wrote:

> 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


>
> "jco" <jcotaker@yahoo.com> wrote in message
> news:3d9601c3fe71$424a21e0$a501280a@phx.gbl...
>> 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.
>
>

Mark V
02-29-2004, 08:22 AM
In microsoft.public.win2000.cmdprompt.admin wrote:

> 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


>
> "jco" <jcotaker@yahoo.com> wrote in message
> news:3d9601c3fe71$424a21e0$a501280a@phx.gbl...
>> 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.
>
>

Dave Patrick
02-29-2004, 01:50 PM
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


"cts" wrote:
| 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.

Dave Patrick
02-29-2004, 01:50 PM
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


"cts" wrote:
| 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.

Torgeir Bakken (MVP)
02-29-2004, 05:47 PM
jco wrote:

> 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


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter

Torgeir Bakken (MVP)
02-29-2004, 05:47 PM
jco wrote:

> 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


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter

jco
03-01-2004, 12:06 AM
I have to thank you much, your responce was very helpful.
in fact you are the one who helped me.

>-----Original Message-----
>jco wrote:
>
>> 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
>
>
>--
>torgeir
>Microsoft MVP Scripting and WMI, Porsgrunn Norway
>Administration scripting examples and an ONLINE version of
the 1328 page
>Scripting Guide: http://www.microsoft.com/technet/scriptcenter
>
>
>.
>

jco
03-01-2004, 12:06 AM
I have to thank you much, your responce was very helpful.
in fact you are the one who helped me.

>-----Original Message-----
>jco wrote:
>
>> 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
>
>
>--
>torgeir
>Microsoft MVP Scripting and WMI, Porsgrunn Norway
>Administration scripting examples and an ONLINE version of
the 1328 page
>Scripting Guide: http://www.microsoft.com/technet/scriptcenter
>
>
>.
>