0

So what I'm trying to do is use putty.exe from the command line to open a connection to a serial port. I have that part covered, I get in and what I then need to do is send some commands over the port.

I've tried a -m and a .txt file with what I'm trying to do, but it doesn't seem to work.

commands

<cr>
<cr>
M<cr>
4055222<cr>
test<cr>
N<cr>

I have this so far that opens the session

start "" C:\"Program Files"\PuTTY\putty.exe -load "test"

Any advice would be appreciated!

Compo
  • 36,585
  • 5
  • 27
  • 39

1 Answers1

0

With Putty the only thing I've found is to use auto-hotkey and write a script to send the commands, with pauses.

I found this after a little more searching: putty from a batch file and a script?

p.s. Have you taken a look at GitBash? I prefer it over putty when I need to do something other than ssh...