Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: command prompt problem

  1. #1

    Question Mark

    Hey friends I am using XP SP2.hey i got a problem in command prompt. The problem is if I go to run and type cmd, it wills gives, open with, and choose the program you want to use to open the file. I want know how to correct it. If any buddy knows plz tell me soon...

  2. Software & Hardware   -   #2
    lynx's Avatar .
    Join Date
    Sep 2002
    Location
    Yorkshire, England
    Posts
    9,759
    There are a couple of possibilities which could have gone wrong.

    You (or an application or virus) may have changed the default execution type for the .exe file extension. The segment of registry contained in the attached file dotexe.zip should set it back to default.

    The second possibility is that you (or an application or virus) may have removed the default shell entry for exefiles. The segment of registry contained in the attached file exeshell.zip should set it back to default.

    In either case just extract the registry file from the attachment and double click to merge it into your registry. If your settings are already correct it will have no effect.

    To fully activate the changes you need to log off and log back on.
    Attached Files Attached Files
    .
    Political correctness is based on the principle that it's possible to pick up a turd by the clean end.

  3. Software & Hardware   -   #3
    mbucari1's Avatar Poster BT Rep: +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35BT Rep +35
    Join Date
    Jan 2007
    Age
    37
    Posts
    2,477
    Just so I understand...

    You start a program from the "run" box. The program will launch then exit.

    Is it a command line program that you're running? If so, try typing "cmd /k" before the program path in the run box.

    example
    Code:
    cmd /k c:\someProgram.exe

  4. Software & Hardware   -   #4
    Hey what I am trying to say is i am going to
    Start-run- type cmd-its going to open with n choose the program u want to use to open this file...
    And I tried both the Solutions but still it’s giving the same error . r there any another Solutions……..

  5. Software & Hardware   -   #5
    lynx's Avatar .
    Join Date
    Sep 2002
    Location
    Yorkshire, England
    Posts
    9,759
    Is it just when you type "cmd", or does it do the same if you type the name of other programs (such as regedit). I assumed it was any program.

    If it is just cmd then try typing the full name - cmd.exe. If you get the same result then the cmd.exe program may be corrupted.
    If it runs correctly then the system may be finding another file called cmd but with a different registered extension before it finds cmd.exe, and does not know what to do with it.
    Last edited by lynx; 06-04-2008 at 10:20 AM.
    .
    Political correctness is based on the principle that it's possible to pick up a turd by the clean end.

  6. Software & Hardware   -   #6
    Hey that cmd.exe is working...and if i type any other commands it working. But its only cmd command is not working n giving that error’s. Why its giving like that.


  7. Software & Hardware   -   #7
    can I curse? FUCK!
    Join Date
    May 2003
    Posts
    1,265
    Can you provide a screenshot? It'll be a lot easier to see what the problem is with a screenshot.

  8. Software & Hardware   -   #8
    lynx's Avatar .
    Join Date
    Sep 2002
    Location
    Yorkshire, England
    Posts
    9,759
    The problem is that there's a file called cmd.xxx (I don't know what the xxx will be) which is being treated as a program, but the system doesn't know what to do with it. This is in addition to the correct cmd.exe program.

    First, you need to know the path extensions that your system will treat as executable programs. Right click on "My Computer" and select "Properties".
    Choose the "Advanced" tab and press the button marked "Environment Variables".

    First of all, look in the top box ("User variables for xxxxx") to see if there is a variable called "PATHEXT" - it should not be there but if it is make a note of it's contents then select and delete it.

    Assuming you didn't find it in the top box, find the variable called "PATHEXT" in the bottom box ("System variables") and make a note of it's contents. The default should be ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH", if it is any different from that I'd advise setting it to that, at least for the time being.

    Come back and tell us what you found. If you had to delete or change the "PATHEXT" variable in either of the boxes you've probably already cured the problem.

    If you didn't have to change anything, then the system has forgotten how to deal with one of the extensions, and I'll check out what you need to do to fix it.
    Last edited by lynx; 06-04-2008 at 07:00 PM.
    .
    Political correctness is based on the principle that it's possible to pick up a turd by the clean end.

  9. Software & Hardware   -   #9
    bigboab's Avatar Poster BT Rep: +1
    Join Date
    Jul 2003
    Posts
    29,621
    This is my second attempt. I hope it is of help. You can't have two or more Executable files with the same 'first part' name, for obvious reasons, the computer would not know which one to run. Remembering you only need to enter the first part of an executable file for it to run. So if you have entered CMD.XXX (used to be command.com) which is the DOS shell then it is up and running. If you try to run it again while it is running you will get an error message.

    If this does not help please ignore me. Almost everyone else does.
    The best way to keep a secret:- Tell everyone not to tell anyone.

  10. Software & Hardware   -   #10
    lynx's Avatar .
    Join Date
    Sep 2002
    Location
    Yorkshire, England
    Posts
    9,759
    Quote Originally Posted by bigboab View Post
    This is my second attempt. I hope it is of help. You can't have two or more Executable files with the same 'first part' name, for obvious reasons, the computer would not know which one to run. Remembering you only need to enter the first part of an executable file for it to run. So if you have entered CMD.XXX (used to be command.com) which is the DOS shell then it is up and running. If you try to run it again while it is running you will get an error message.

    If this does not help please ignore me. Almost everyone else does.
    Sorry Bob, that's simply not true.

    If you don't specify where the program is, the "PATH" variable determines which folders the system searches and the order in which they are searched.

    If you don't specify the extension the "PATHEXT" variable determines which ones are possible matches, but does not affect the order in which they are checked.

    For example, if you create a file called cmd.abc in the C:\Windows\System32 folder, then just type "cmd" the system will find cmd.abc before cmd.exe because it is earlier alphabetically. It will then check "PATHEXT" and will normally reject the file because .abc is not in "PATHEXT", and look for the next file. However, if you add .abc anywhere in "PATHEXT" the system will select that file as a match, because the order in "PATHEXT" is not important.

    Once the system has found a matching file, whether by clicking on the file, typing it's full path or by allowing the system to find it for you, it will try to execute the file by comparing the extension with the contents of the registry. If there is no equivalent class in the registry then you get the error message shown in this problem.
    .
    Political correctness is based on the principle that it's possible to pick up a turd by the clean end.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •