12
5
PuTTY is much better than cmd.exe. Can I use PuTTY to execute Windows commands?
12
5
PuTTY is much better than cmd.exe. Can I use PuTTY to execute Windows commands?
6
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.
1What I don't like in cmd.exe
is how to copy and paste there. Putty would make it easier. – Jader Dias – 2011-04-13T12:36:26.830
2
@Jader: Use CMD within Console2 then. You can define any keyboard shortcuts for Copy and Paste. I use CTRL+C and CTRL+V. http://sourceforge.net/projects/console/ I hide the toolbar.
– paradroid – 2011-04-13T13:28:01.8633
I use cygwin with puttycyg: http://code.google.com/p/puttycyg/
– glenn jackman – 2011-04-13T14:09:47.5032
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.
2
If you want an alternative command line interpreter, look at TCCLE http://jpsoft.com/tccle_cmd_replacement.html - If you want something better than the gui that cmd.exe offers, look at Console 2 http://sourceforge.net/projects/console/ - I have used this combonation for a long time.
– MaQleod – 2011-04-13T14:07:02.4371FYI: PuTTY is only a terminal. It doesn't execute commands, only forwards them to a (remotely running) shell.
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
. – user1686 – 2011-04-14T05:15:43.120@grawit I downloaded PuTTYcyg, but it was using the cygwin interpreter. I executed the
cmd.exe
interpreter inside it but it lost its auto-completion feature. – Jader Dias – 2011-04-14T12:29:06.757