0

I'm trying to open putty with my server data loaded through a batch file.

I tried start "OVH" "C:\Program Files (x86)\PuTTY\putty.exe -ssh [email protected] -pw password", and that did not work; however, when I go to \PuTTY, putty.exe -ssh [email protected] -pw password does work.

What is the simplest, fastest, most cut-and-dry way to correct my syntax?

3
  • 1
    Why does it not work? Which error do you get. Did you try "C:\Program Files (x86)\PuTTY\putty.exe" -ssh [email protected] -pw password ?
    – Hennes
    Jan 28, 2016 at 18:45
  • @Hennes That worked, if you want to post it as an answer. Jan 28, 2016 at 19:02
  • Will do. Rather surprised since I did not research it nor do I have much experience with windows shortcuts. It just seems the way I always did things.
    – Hennes
    Jan 28, 2016 at 19:08

1 Answer 1

2

Edit "OVH.bat" to: start "C:\Program Files (x86)\PuTTY\putty.exe" -ssh [email protected] -pw password"

That starts the program C:\Program Files (x86)\PuTTY\putty.exe with the arguments -ssh [email protected] -pw password.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .