Hello,

I'm writing my first bat script. I'm having trouble assigning the return value of a command to a variable. Here's what I'm trying to do:

myvar=ssh2 host command

If anyone could point me in the right direction, it would be most appreciated.

Thanks!