Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Replace cmd.exe with Console  (Read 15011 times)

0 Members and 1 Guest are viewing this topic.

Chem4

    Topic Starter


    Rookie

    • Experience: Familiar
    • OS: Windows 7
    Replace cmd.exe with Console
    « on: February 24, 2009, 08:43:00 PM »
    I think I already know the answer but someone more experienced might know.:)
    I want to replace cmd.exe with Console. In the case of taskmgr.exe it is easy. I just add a string named "Debugger" in the following key:

    HKLM\ SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe

    and in Data I put the path to Process Explorer.

    I tried to do the same for cmd.exe but it didn't work. So I supposed that I have to replace cmd.exe with Console.exe. But I get a security warning when I try to rename cmd.exe to cmd.bak in order to place the renamed Console.exe to cmd.exe in the Windows folder.

    Is there any other solution?

    Thanks in advance!

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Replace cmd.exe with Console
    « Reply #1 on: February 24, 2009, 08:52:10 PM »
    what is "Console.exe"?


    Is the security warning the System File protection dialog?


    instead of changing or modifying the cmd.exe file in System32, try renaming & replacing the one in system32\dllcache

    Then, if you delete the actual Cmd.exe in system32, windows will show the SFC prompt- allow it to replace the file (unless it asks for your Windows CD, then hit cancel).

    If SFC doesn't ask for a CD, then it probably replaced the cmd.exe file with the renamed console.exe, otherwise you should be able to simply copy the one from dllcache to System32.
    I was trying to dereference Null Pointers before it was cool.

    Chem4

      Topic Starter


      Rookie

      • Experience: Familiar
      • OS: Windows 7
      Re: Replace cmd.exe with Console
      « Reply #2 on: February 24, 2009, 08:59:14 PM »
      Console is an alternative solution for cmd.

      I can't find any folder "dllcache" in system32 folder. :-[

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Replace cmd.exe with Console
      « Reply #3 on: February 24, 2009, 09:16:14 PM »
      it's a hidden folder- maybe you can't see in in explorer.

      Try navigating directly to it by typing
      Code: [Select]
      %SYSTEMROOT%\system32\dllcache

      into the Explorer address bar.
      I was trying to dereference Null Pointers before it was cool.

      Chem4

        Topic Starter


        Rookie

        • Experience: Familiar
        • OS: Windows 7
        Re: Replace cmd.exe with Console
        « Reply #4 on: February 25, 2009, 06:33:04 AM »
        it's a hidden folder- maybe you can't see in in explorer.

        Try navigating directly to it by typing
        Code: [Select]
        %SYSTEMROOT%\system32\dllcache

        into the Explorer address bar.
        It doesn't exist such a folder in Windows Vista, or I'm blind. :P

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: Replace cmd.exe with Console
        « Reply #5 on: February 25, 2009, 06:36:49 AM »
        Oh I'm sorry, wasn't paying attention- gave you instructions for XP.


        This security warning- is it UAC? can't  you simply elevate to rename CMD?
        I was trying to dereference Null Pointers before it was cool.

        Chem4

          Topic Starter


          Rookie

          • Experience: Familiar
          • OS: Windows 7
          Re: Replace cmd.exe with Console
          « Reply #6 on: February 25, 2009, 06:54:11 AM »
          I have UAC disabled. It says that I need permission to rename cmd.exe. I could probably change the file permissions, but I thought that maybe there was another way of doing this.

          patio

          • Moderator


          • Genius
          • Maud' Dib
          • Thanked: 1769
            • Yes
          • Experience: Beginner
          • OS: Windows 7
          Re: Replace cmd.exe with Console
          « Reply #7 on: February 25, 2009, 07:38:16 AM »
          Right clik and select Run as Admin...
          Some tasks require this even with UAC disabled.
          BTW how did you disable it ? ?
          " Anyone who goes to a psychiatrist should have his head examined. "

          Chem4

            Topic Starter


            Rookie

            • Experience: Familiar
            • OS: Windows 7
            Re: Replace cmd.exe with Console
            « Reply #8 on: February 25, 2009, 07:59:56 AM »
            BTW how did you disable it ? ?

            I have the feeling that we don't refer to the same thing.:)
            I mean I have disabled User Account Control. You can disable it in Control Panel-->User Accounts. But I just use a custom made Windows Vista version I made with vLite and I have it disabled by default.

            Right clik and select Run as Admin...
            Some tasks require this even with UAC disabled.

            I cannot rename the cmd.exe in which is in System32 folder because of the permissions that Windows has in that folder. With Notepad again it was easy, but Notepad is in Windows folder and not in system32.
            So where do I have to right click and Run as Admin?


            EDIT: Ok, I just had to take ownership of cmd.exe and then I was able to rename it to cmd1.exe and put the renamed console.exe to system32 folder. The problem is that Console needs some files to work so those have to be place in system32 folder also.

            patio

            • Moderator


            • Genius
            • Maud' Dib
            • Thanked: 1769
              • Yes
            • Experience: Beginner
            • OS: Windows 7
            Re: Replace cmd.exe with Console
            « Reply #9 on: February 25, 2009, 08:13:25 AM »
            So you have an "ahem" version of Vista ? ?
            That would have been useful info in the beginning...
            " Anyone who goes to a psychiatrist should have his head examined. "

            Chem4

              Topic Starter


              Rookie

              • Experience: Familiar
              • OS: Windows 7
              Re: Replace cmd.exe with Console
              « Reply #10 on: February 25, 2009, 08:24:33 AM »
              So you have an "ahem" version of Vista ? ?
              That would have been useful info in the beginning...
              "ahem" means? I make my custom build of Vista, because I have several machines. I slipstream all the hotfixes and cut some services that I don't need.

              Dias de verano

              • Guest
              Re: Replace cmd.exe with Console
              « Reply #11 on: February 25, 2009, 11:27:19 AM »
              Console.exe is just an command window program. It is a Windows console window enhancement. It is not a replacement for the command interpreter cmd.exe. In fact, when you run console, cmd.exe is required to process the commands, display the prompt, etc. So removing cmd.exe would not provide the desired outcome.




              BC_Programmer


                Mastermind
              • Typing is no substitute for thinking.
              • Thanked: 1140
                • Yes
                • Yes
                • BC-Programming.com
              • Certifications: List
              • Computer: Specs
              • Experience: Beginner
              • OS: Windows 11
              Re: Replace cmd.exe with Console
              « Reply #12 on: February 25, 2009, 11:29:00 AM »
              autoexec.nt, maybe?
              I was trying to dereference Null Pointers before it was cool.

              Dias de verano

              • Guest
              Re: Replace cmd.exe with Console
              « Reply #13 on: February 25, 2009, 11:45:19 AM »
              I don't see the problem. You start Windows, you are in the GUI, you want a command window, you start a win32 console app which might be the standard cmd or console or powercmd or 4NT or TakeCommand or bash as you desire. Why the need to rename cmd.exe?

              xcharge50



                Beginner

                Re: Replace cmd.exe with Console
                « Reply #14 on: February 25, 2009, 08:39:12 PM »
                Right clik and select Run as Admin...
                Some tasks require this even with UAC disabled.
                BTW how did you disable it ? ?

                What about : Start -> Run (or textbox) -> msconfig -> Tool tabs -> *click* uac disable -> *click* launch

                This is the best way i found