PuTTY is much better than cmd.exe. Can I use PuTTY to execute Windows commands?
3 Answers
The only way you could achieve this is to install an SSH or Telnet server into Windows. Windows comes with a Telnet server in the Add/Remove Windows Components.
Then you can use PuTTY to connect to the local computer and log in.
However, you will still be running cmd.exe within PuTTY, so you won't really gain anything by this - in fact it will probably be worse.
If you want the full Bash experience you should look at installing Cygwin to give you a more Linux-like interface.
-
2What I don't like in
cmd.exe
is how to copy and paste there. Putty would make it easier. Commented Apr 13, 2011 at 12:36 -
2@Jader: Use CMD within Console2 then. You can define any keyboard shortcuts for Copy and Paste. I use CTRL+C and CTRL+V. sourceforge.net/projects/console I hide the toolbar. Commented Apr 13, 2011 at 13:28
-
3I use cygwin with puttycyg: code.google.com/p/puttycyg Commented Apr 13, 2011 at 14:09
Also, you can use netcat:
nc -L -p 1234 -e cmd.exe
And then connect to localhost on port 1234 using PuTTY (RAW type connection). It is still not the best, but at least you don't have to install SSH or Telnet servers. (Also, Unix-like color codes seem to work for example:
grep --color=always ...
Using Windows grep seems to work properly.
cmd.exe
is a shell. It doesn't have a GUI and doesn't handle copy-pasting; that's the job of a terminal (usually the Win32 Console). If you use PuTTYcyg in place of Win32 Console windows, you'll get your copy/paste behavior, but you would still be running commands incmd.exe
.cmd.exe
interpreter inside it but it lost its auto-completion feature.