Jump to content

Cmd Key Bindings - Ctrl-D to quit cmd?


Recommended Posts

You're right about that. I do agree that CTRL+D is a nice quick shortcut.

Unfortunately Microsoft doesn't like people changing their programs so they keep them under lock and key. Chances are you cannot modify the dos program without an external program that when ctrl+d is pressed, performs an EXIT command on the dos window.

Link to comment
Share on other sites

  • 5 years later...

-- This is a post necro. I shamelessly admit --

This is possible via a technique mentioned on SuperUser.com.

http://superuser.com/questions/144347/is-there-windows-equivalent-of-the-bashrc-file-in-linux#comment146476_144348

; Run a command when CMD.exe starts
[HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor]
"AutoRun"=%USERPROFILE%\CmdAutorun.cmd

Make the file contents

doskey∙♦=exit ( is [char]4)

You will most likely need to use an advanced editor to enter the 04 character, as it's a non-printable ASCII character.

I used XVI32 http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm

2ynkxt1.png

Press CTRL + D, then {Enter} to close your CMD shell!

eprync.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy