I am trying to write a batch file to automate a PuTTY script. Right now the script successfully logs into the SSH server with this line
putty.exe -ssh user@ipaddress -pw password -m commands.txt > log.txt
My problem is that once it's logged in the server prompts me to hit "Ctrl+y to begin" afterwards it asks me to press "Enter". How would I imitate that in my commands.txt file?