Sign in with
Sign up | Sign in
Your question

Commands not working in cmd prompt

Last response: in Windows XP
Share
October 15, 2010 4:11:38 PM

hi

in my pc
commands are not working in cmd prompt (some commands are working properly)

i got the error like

'(________)' is not recognized as an internal or external command,
operable program or batch file.
October 15, 2010 4:29:12 PM

What commands aren't working?
m
0
l
October 15, 2010 5:14:10 PM

This usually means you are typing the command wrong or you are not giving the full path to the command if it's not in the PATH variable.
m
0
l
Related resources
October 15, 2010 5:29:35 PM

Make sure you're using valid commands.
m
0
l
October 15, 2010 5:39:58 PM

Or possibly they are commands that are only available to the Administrator.
m
0
l
October 16, 2010 4:36:18 PM

hi ijack,

ipconfig, ping, net, ftp, finger, find, more even help is also not working (i am not giving any path)

cd mkdir, rmdir, dir......... these commands are working properly

thanks
m
0
l
October 16, 2010 4:38:10 PM


hi

yes i am using valid commands



ipconfig, ping, net, ftp, finger, find, more even help is also not working (i am not giving any path)

cd mkdir, rmdir, dir......... these commands are working properly

thanks
m
0
l
October 16, 2010 4:43:21 PM



hello


i am not giving any path for commands.... is it required


and also i am not set any PATH variable. i think by default its came


m
0
l
October 16, 2010 6:42:36 PM

The commands that are working are all (I'm pretty sure) commands internal to the command processor, whereas the ones that aren't working are all external programs. So either those programs are missing (unlikely) or your PATH variable isn't set correctly.

Try doing

dir c:\windows\ping.exe /s

to check the former (it should find the program in c:\windows\system32) and

echo %PATH%

to check the latter (the path should include the directory c:\windows\system32).

If the PATH variable is wrong you can edit it as shown in this article.
m
0
l
!