add sudo parameter to command line winscp
I need to add "sudo su -" command to command line execution of winscp in order to put it in a batch file. I know how to accomplish that in GUI, but i need it in command line mode.
Looking at winscp.ini file I see this option in a saved session where sudo is enabled:
[Sessions\remoteUsr@remoteServer] HostName=linuxdev04.servizi.infogroup.it UserName=name FSProtocol=0 LocalDirectory=C:%5C RemoteDirectory=/opt/remoteUsr Shell=sudo%20su%20-%20remoteUsr Color=13408767