Command prompt has broke!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When ever I type in dir or cd or ping or anything like that into command
prompt I get a error saying the command dosent exist but it dose i was using
them 3 mounths ago.

Please Help
 
Nope I even downloaded the program and it said everything was okay.
 
Open a command prompt...
Start | Run | Type: cmd | Click OK |
In the command window type:

%windir%\system32\ping.exe

Hit your Enter key.

What happened? Did help for ping get displayed? Error message?
'ping.exe' is not recognized as an internal or external command,
operable program or batch file.

Open a command prompt...
Start | Run | Type: cmd | Click OK |
In the command window type:

path

Hit your Enter key.

This will copy the text from the command prompt...
Right click the top tool bar | Point to Edit | Click Select All |
Hit your Enter key.

Paste that into a message and post back.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Arron>%windir%\system32\ping.exe

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] target_name

Options:
-t Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
-i TTL Time To Live.
-v TOS Type Of Service.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each reply.


C:\Documents and Settings\Arron>pat
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Program Fi
les\Microsoft SQL Server\90\Tools\Binn\;C:\Program Files\Common
Files\Autodesk S
hared\;C:\Program Files\backburner 2\;C:\Program Files\NVIDIA
Corporation\NVIDIA
DDS Utilities;C:\EUPHORIA\BIN;

C:\Documents and Settings\Arron>

It seems to work when I do that but if i type ping into command prompt it
just says it cant find it.

Thanks for help.
 
Hi Arron,

Pathext & Path

The environmental variable Pathext controls which extensions do not need to
be typed in a Command Prompt or Run. The Path environmental variable and a
registry entry, that I can't remember now, control what paths do not have to
be typed.

Pathext shows a list of file extensions that are considered to be
executable.

Set displays the current environment variables.
-----

Open a command prompt and type:

set

Hit Enter.

Look for PATHEXT.

Should look something like this ...

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

You may not have all of those. But, I'm betting that .EXE is missing.

COM extension is short for Command.
EXE is short for Executable.
BAT is short for Batch.
CMD Windows NT Command Script.
VBS VBScript Script File. Visual Basic.
VBE VBScript Encoded Script File.
JS JScript Script File.
JSE JScript Encoded Script File
WSF Windows Script File.
WSH Windows Script Host Settings File.

Path and set are internal commands and do not have an extension.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
badboy said:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Arron>%windir%\system32\ping.exe

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] target_name

Options:
-t Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
-i TTL Time To Live.
-v TOS Type Of Service.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each reply.


C:\Documents and Settings\Arron>path
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Progra
m
Fi les\Microsoft SQL Server\90\Tools\Binn\;C:\Program Files\Common
Files\Autodesk S
hared\;C:\Program Files\backburner 2\;C:\Program Files\NVIDIA
Corporation\NVIDIA
DDS Utilities;C:\EUPHORIA\BIN;

C:\Documents and Settings\Arron>

It seems to work when I do that but if i type ping into command prompt it
just says it cant find it.

Thanks for help.

badboy said:
Nope I even downloaded the program and it said everything was okay.
 
badboy said:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Arron>%windir%\system32\ping.exe

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v
TOS] [-r count] [-s count] [[-j host-list] | [-k
host-list]] [-w timeout] target_name

Options:
-t Ping the specified host until stopped.
To see statistics and continue - type
Control-Break; To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
-i TTL Time To Live.
-v TOS Type Of Service.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each
reply.


C:\Documents and Settings\Arron>path
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Program
Fi les\Microsoft SQL Server\90\Tools\Binn\;C:\Program
Files\Common
Files\Autodesk S
hared\;C:\Program Files\backburner 2\;C:\Program Files\NVIDIA
Corporation\NVIDIA
DDS Utilities;C:\EUPHORIA\BIN;

C:\Documents and Settings\Arron>

It seems to work when I do that but if i type ping into
command prompt it
just says it cant find it.

Thanks for help.

badboy said:
Nope I even downloaded the program and it said everything
was okay.

Take a look at this registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment

In the right hand pane, does the Path entry have REG_EXPAND_SZ
listed in the Type column? If it's listed as REG_SZ it would
cause the type of behavior you're experiencing. Take a look at
the solution provided by David Candy in this thread:

http://tinyurl.com/drlw9

Nepatsfan
 
omg its working??? I dident do anything maybe i just had to type set in or
somthing and check the registry key Thanks for your help!!!!



badboy said:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Arron>%windir%\system32\ping.exe

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] target_name

Options:
-t Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
-i TTL Time To Live.
-v TOS Type Of Service.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each reply.


C:\Documents and Settings\Arron>path
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Program Fi
les\Microsoft SQL Server\90\Tools\Binn\;C:\Program Files\Common
Files\Autodesk S
hared\;C:\Program Files\backburner 2\;C:\Program Files\NVIDIA
Corporation\NVIDIA
DDS Utilities;C:\EUPHORIA\BIN;

C:\Documents and Settings\Arron>

It seems to work when I do that but if i type ping into command prompt it
just says it cant find it.

Thanks for help.

badboy said:
Nope I even downloaded the program and it said everything was okay.
 
You weren't holding your mouth right. ;-)

Glad you got it fixed. Keep having fun.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
badboy said:
omg its working??? I dident do anything maybe i just had to type set in or
somthing and check the registry key Thanks for your help!!!!



badboy said:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Arron>%windir%\system32\ping.exe

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] target_name

Options:
-t Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
-i TTL Time To Live.
-v TOS Type Of Service.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each reply.


C:\Documents and Settings\Arron>path
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Progra
m
Fi les\Microsoft SQL Server\90\Tools\Binn\;C:\Program Files\Common
Files\Autodesk S
hared\;C:\Program Files\backburner 2\;C:\Program Files\NVIDIA
Corporation\NVIDIA
DDS Utilities;C:\EUPHORIA\BIN;

C:\Documents and Settings\Arron>

It seems to work when I do that but if i type ping into command prompt it
just says it cant find it.

Thanks for help.
 

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

Back
Top