DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: replace cmd  (Read 13,188 times)

alexp

  • Is cheese the plural of choose?????
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 41
replace cmd
« on: October 25, 2005, 10:14 AM »
I use console as a frontend for cmd if I need to do any work in it.

What I'm looking for is if anyone knows of any way of catching any cmd windows which try to open (like if I run a batch file or a program opens one up) and open console up instead.

I'm not sure if this is the right scetion for this but I'll post it here anyway.
Why is it that writers write, but fingers don't fing, grocers don't groce, and hammers don't ham? If the plural of tooth is teeth, why isn't the plural of booth beeth? One goose, 2 geese. So, one moose, 2 meese? One index, two indices? Is cheese the plural of choose?

jpfx

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 155
Re: replace cmd
« Reply #1 on: October 27, 2005, 12:12 AM »
how about renaming console.exe to cmd.exe?
       |\      _,,,---,,_         
ZZZzzz /,`.-'`'    -.  ;-;;, 
      |,4-  ) )-,_. ,\ (  `'-'    
     '---''(_/--'  `-'\_)

Darwin

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,985
    • Gathering Badge
Re: replace cmd
« Reply #2 on: October 27, 2005, 01:47 AM »
Good suggestion (from jpfx). To do this under both Win2k and WinXP is a bit of a bugger, though. For info on how to do it, check out the faq at the metapad site: www.liquidninja.com.

Here's how to do it for XP: http://www.liquidninja.com/metapad/faq.html#Q28
Here's Win2k: http://www.liquidninja.com/metapad/faq.html#Q17

You can substitute cmd.exe for notepad.exe and follow the successfully follow the instructions (I think ;)).
"Some people have a way with words, other people,... oh... have not way" - Steve Martin

Zero3K

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 316
Re: replace cmd
« Reply #3 on: October 27, 2005, 03:01 AM »
Here's what I did, I renamed Cmd.exe to cmd.bak and Console.exe to cmd.exe. Then I set the ComSpec environment variable to C:\Windows\System32\cmd.bak. After that, I coped the files the Console.exe requires to C:\Windows\System32.

alexp

  • Is cheese the plural of choose?????
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 41
Re: replace cmd
« Reply #4 on: October 27, 2005, 03:09 PM »
Here's what I did, I renamed Cmd.exe to cmd.bak and Console.exe to cmd.exe. Then I set the ComSpec environment variable to C:\Windows\System32\cmd.bak. After that, I coped the files the Console.exe requires to C:\Windows\System32.
Have you actually replaced cmd with console? What do you mean by setting the ComSpec environment?
Why is it that writers write, but fingers don't fing, grocers don't groce, and hammers don't ham? If the plural of tooth is teeth, why isn't the plural of booth beeth? One goose, 2 geese. So, one moose, 2 meese? One index, two indices? Is cheese the plural of choose?

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,073
    • Cody Award
    • Furry Fandom Badge - Furry Fandom
Re: replace cmd
« Reply #5 on: October 27, 2005, 04:49 PM »
Checkout Control Panel > System > Advanced Tab > Environment Variables (button)  and look in the list of system variables at the bottom.

(THis is for windows XP but there are similar things in other windows versions but may have different tab/button names)

alexp

  • Is cheese the plural of choose?????
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 41
Re: replace cmd
« Reply #6 on: October 27, 2005, 05:13 PM »
Checkout Control Panel > System > Advanced Tab > Environment Variables (button)  and look in the list of system variables at the bottom.

(THis is for windows XP but there are similar things in other windows versions but may have different tab/button names)
Ah cool, that makes more sense now.
Why is it that writers write, but fingers don't fing, grocers don't groce, and hammers don't ham? If the plural of tooth is teeth, why isn't the plural of booth beeth? One goose, 2 geese. So, one moose, 2 meese? One index, two indices? Is cheese the plural of choose?

Darwin

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,985
    • Gathering Badge
Re: replace cmd
« Reply #7 on: October 28, 2005, 04:56 AM »
Wow - nice, I really do learn something new every day!
"Some people have a way with words, other people,... oh... have not way" - Steve Martin

dpierron

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 31
Re: replace cmd
« Reply #8 on: November 11, 2005, 04:22 PM »
Console is really a nice tool ! Thanks for pointing it to me.
However, I wasn't able to successfuly replace cmd.exe by console.exe, Windows Security kept begging me for the installation CD, and when I ran console (by running the executable renamed as cmd.exe), it cycled endlessly, creating window after window of nice looking consoles ...
Any advice ?

David.
http://www.davidsoft.org
--
http://www.google.com/profiles/dpierron --- Google profile
http://davidsoft.free.fr --- De l'influence du ciel bleu sur le moral des motocyclistes
http://www.goodreads.com/user/show/1941488 -- Goodreads
http://davidsoft.free.fr/calibre2opds/calibre2opds -- calibre2opds

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: replace cmd
« Reply #9 on: June 01, 2007, 08:29 PM »
this is a very interesting program that i was about to post when a forum search returned this thread.. as it has already been mentioned, i'll just add a screenshot.. :)

[attach=#]

Original address: https://www.donationcoder.com/forum/index.php?topic=1324.0