|  RSS

PC World Forums: Vista Command Prompt Problem - PC World Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Vista Command Prompt Problem command prompt not working properly

#1 User is offline   thecompmaster Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 25-November 08

Posted 03 November 2009 - 09:39 AM

I have been trying to use the command prompt for some time now but unsuccessfully. I have used it several times before and may have changed something with the default directory but many commands will not work now, but I have tried using the command "cd C:\". I have noticed that the dir and @echo commands work, but with others, I get the message "<command name> is not recognized as an internal or external command, operable program, or batch file." Anyone have the same problem or know how to fix it? Any help appreciated!
0

#2 User is offline   pccarehimanshu Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 03-November 09

Posted 04 November 2009 - 11:07 PM

View Postthecompmaster, on 03 November 2009 - 09:39 AM, said:

I have been trying to use the command prompt for some time now but unsuccessfully. I have used it several times before and may have changed something with the default directory but many commands will not work now, but I have tried using the command "cd C:\". I have noticed that the dir and @echo commands work, but with others, I get the message "<command name> is not recognized as an internal or external command, operable program, or batch file." Anyone have the same problem or know how to fix it? Any help appreciated!





Hi there

what you can try is to download a portable command prompt

i tried it and it worked

One of the link is here


Portable command prompt
0

#3 User is offline   thecompmaster Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 25-November 08

Posted 05 November 2009 - 01:41 AM

Thanks, it sounded like a good idea, but unfortunately when I tried it I still had the same problem.

I would guess that some settings or something accidentally got changed. I don't know if there is some simple variable change or anything that could have caused this.

Any other suggestions?
0

#4 User is offline   doslover Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 37
  • Joined: 15-February 09

Posted 05 November 2009 - 09:53 AM

View Postthecompmaster, on 03 November 2009 - 11:39 AM, said:

I have been trying to use the command prompt for some time now but unsuccessfully. I have used it several times before and may have changed something with the default directory but many commands will not work now, but I have tried using the command "cd C:\". I have noticed that the dir and @echo commands work, but with others, I get the message "<command name> is not recognized as an internal or external command, operable program, or batch file." Anyone have the same problem or know how to fix it? Any help appreciated!


Go into the command prompt window and type "set". It should list all your environment parameters, including paths. Type "help" and it should show all the DOS commands. Internal commands such as "dir" should always be available regardless of the directory. Try other internal commands like "ver" and "vol". If these don't work, then Vista is messed up somehow. Personally, if you are having problems with Vista, just upgrade to Win 7 and your problems should go away. That's what I did.
0

#5 User is offline   thecompmaster Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 25-November 08

Posted 06 November 2009 - 01:14 AM

View Postdoslover, on 05 November 2009 - 05:53 PM, said:

View Postthecompmaster, on 03 November 2009 - 11:39 AM, said:

I have been trying to use the command prompt for some time now but unsuccessfully. I have used it several times before and may have changed something with the default directory but many commands will not work now, but I have tried using the command "cd C:\". I have noticed that the dir and @echo commands work, but with others, I get the message "<command name> is not recognized as an internal or external command, operable program, or batch file." Anyone have the same problem or know how to fix it? Any help appreciated!


Go into the command prompt window and type "set". It should list all your environment parameters, including paths. Type "help" and it should show all the DOS commands. Internal commands such as "dir" should always be available regardless of the directory. Try other internal commands like "ver" and "vol". If these don't work, then Vista is messed up somehow. Personally, if you are having problems with Vista, just upgrade to Win 7 and your problems should go away. That's what I did.


All the commands you mentioned worked, except for help. I don't think the problem is Vista, since it was working fine a few months ago. It just suddenly wasn't responding correctly to certain commands, such as help and shutdown. That's why I think it could be some setting or directory change, unless it was because of some Vista update or something similar. It could also be because I accidentally changed a setting or possibly have a program that conflicted with it.

This post has been edited by thecompmaster: 06 November 2009 - 01:15 AM

0

#6 User is offline   doslover Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 37
  • Joined: 15-February 09

Posted 06 November 2009 - 06:28 AM

View Postthecompmaster, on 06 November 2009 - 03:14 AM, said:

View Postdoslover, on 05 November 2009 - 05:53 PM, said:

View Postthecompmaster, on 03 November 2009 - 11:39 AM, said:

I have been trying to use the command prompt for some time now but unsuccessfully. I have used it several times before and may have changed something with the default directory but many commands will not work now, but I have tried using the command "cd C:\". I have noticed that the dir and @echo commands work, but with others, I get the message "<command name> is not recognized as an internal or external command, operable program, or batch file." Anyone have the same problem or know how to fix it? Any help appreciated!


Go into the command prompt window and type "set". It should list all your environment parameters, including paths. Type "help" and it should show all the DOS commands. Internal commands such as "dir" should always be available regardless of the directory. Try other internal commands like "ver" and "vol". If these don't work, then Vista is messed up somehow. Personally, if you are having problems with Vista, just upgrade to Win 7 and your problems should go away. That's what I did.


All the commands you mentioned worked, except for help. I don't think the problem is Vista, since it was working fine a few months ago. It just suddenly wasn't responding correctly to certain commands, such as help and shutdown. That's why I think it could be some setting or directory change, unless it was because of some Vista update or something similar. It could also be because I accidentally changed a setting or possibly have a program that conflicted with it.


Help is an external command, so it might not work even if the command processor works. Since the internal commands like Dir, Ver and Vol work, I don't think there is a problem with the command processor (cmd.exe) itself. First, are you running from a single hard drive partition, i.e. drive C: ? Try the following: Open Windows Explorer (file manager) and navigate to the folder C:\Windows\System32. You should find the executable files "cmd.exe", "help.exe" and "shutdown.exe". Double-click on cmd.exe to open the command processor. Again try to run Help. If it works, type Set and make sure you see the entry "ComSpec=C:\Windows\System32\cmd.exe". Also, the path environment entry should point to this directory (Path=C:\Windows\System32;.....). This sounds most likely to be a problem with environment settings, since it's unlikely that files have actually been deleted.
0

#7 User is offline   techie4fun Icon

  • Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 2,838
  • Joined: 18-October 06

Posted 06 November 2009 - 07:30 AM

Quote

All the commands you mentioned worked, except for help. I don't think the problem is Vista, since it was working fine a few months ago. It just suddenly wasn't responding correctly to certain commands, such as help and shutdown. That's why I think it could be some setting or directory change, unless it was because of some Vista update or something similar. It could also be because I accidentally changed a setting or possibly have a program that conflicted with it.


Just tested this on my Vista machine.
I can run Help without any problems....

This post has been edited by smax013: 07 November 2009 - 02:26 PM
Reason for edit:: Fixed quote tags

0

#8 User is offline   thecompmaster Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 25-November 08

Posted 06 November 2009 - 11:17 AM

View Postdoslover, on 06 November 2009 - 02:28 PM, said:

View Postthecompmaster, on 06 November 2009 - 03:14 AM, said:

View Postdoslover, on 05 November 2009 - 05:53 PM, said:

View Postthecompmaster, on 03 November 2009 - 11:39 AM, said:

I have been trying to use the command prompt for some time now but unsuccessfully. I have used it several times before and may have changed something with the default directory but many commands will not work now, but I have tried using the command "cd C:\". I have noticed that the dir and @echo commands work, but with others, I get the message "<command name> is not recognized as an internal or external command, operable program, or batch file." Anyone have the same problem or know how to fix it? Any help appreciated!


Go into the command prompt window and type "set". It should list all your environment parameters, including paths. Type "help" and it should show all the DOS commands. Internal commands such as "dir" should always be available regardless of the directory. Try other internal commands like "ver" and "vol". If these don't work, then Vista is messed up somehow. Personally, if you are having problems with Vista, just upgrade to Win 7 and your problems should go away. That's what I did.


All the commands you mentioned worked, except for help. I don't think the problem is Vista, since it was working fine a few months ago. It just suddenly wasn't responding correctly to certain commands, such as help and shutdown. That's why I think it could be some setting or directory change, unless it was because of some Vista update or something similar. It could also be because I accidentally changed a setting or possibly have a program that conflicted with it.


Help is an external command, so it might not work even if the command processor works. Since the internal commands like Dir, Ver and Vol work, I don't think there is a problem with the command processor (cmd.exe) itself. First, are you running from a single hard drive partition, i.e. drive C: ? Try the following: Open Windows Explorer (file manager) and navigate to the folder C:\Windows\System32. You should find the executable files "cmd.exe", "help.exe" and "shutdown.exe". Double-click on cmd.exe to open the command processor. Again try to run Help. If it works, type Set and make sure you see the entry "ComSpec=C:\Windows\System32\cmd.exe". Also, the path environment entry should point to this directory (Path=C:\Windows\System32;.....). This sounds most likely to be a problem with environment settings, since it's unlikely that files have actually been deleted.


Thank you that does the trick.:-) When I navigated to the folder and opened it, it worked, but not when I tried using Run->cmd. Is there a way to fix the way I was doing it? If not, this is more than sufficient. Thanks again :-)
0

#9 User is offline   doslover Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 37
  • Joined: 15-February 09

Posted 06 November 2009 - 11:39 AM

View Postthecompmaster, on 06 November 2009 - 01:17 PM, said:

When I navigated to the folder and opened it, it worked, but not when I tried using Run->cmd. Is there a way to fix the way I was doing it?


Yes. Go to Start > Program Files > Accessories and click on the Command Prompt icon. Or, what I do is simply copy (Ctrl drag) the shortcut icon to my desktop, so I don't have to go through the start menus.
0

#10 User is offline   orlbuckeye Icon

  • Advanced Member
  • PipPipPipPip
  • Group: Members
  • Posts: 152
  • Joined: 02-May 07

Posted 06 November 2009 - 12:11 PM

View Postdoslover, on 06 November 2009 - 07:39 PM, said:

View Postthecompmaster, on 06 November 2009 - 01:17 PM, said:

When I navigated to the folder and opened it, it worked, but not when I tried using Run->cmd. Is there a way to fix the way I was doing it?


Yes. Go to Start > Program Files > Accessories and click on the Command Prompt icon. Or, what I do is simply copy (Ctrl drag) the shortcut icon to my desktop, so I don't have to go through the start menus.

Microsoft has added a new scripting language the Power Shell that can do alot of the things that used to be done at the command prompt. It's especially usefull for windows administrators.

http://en.wikipedia....dows_PowerShell
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users