I am trying to run a batch-file on remote windows machine, from macos through ssh commands.
sshpass -p 'password' ssh username@server < abc.bat
I want to send argument to my batch file.
sshpass -p 'password' ssh username@server < abc.bat variable1
I get error
'variable1' is not recognized as an internal or external command, operable program or batch file
In my batch file I want to read this variable1
and pass it to one exe that I use as parameter.
set var1=%1
xyz.exe %var1%
Can someone help.