I can't assign files with batch file, it stays in the folder.
I want to transfer a file with private key with SFTP in WinSCP. I have no problem connecting with the user, but I cannot access the folder on the other side, no matter what I do, can you help with this?
I can manually transfer files through the application.
In addition, I can access the folder with
I can manually transfer files through the application.
In addition, I can access the folder with
cd /
from WinSCP and transfer files manually with put
.
option batch on option confirm off "C:\Program Files (x86)\WinSCP\winscp.com" /command "open sftp://xxx:xxxx@sftp.xxx.com:22 -hostkey="rsa-key-20210922" -privatekey="C:\app\xxx_private.ppk" -passphrase="xxxxx"" option transfer binary cd /simple/millnet/xxx put "C:\app\deneme.txt" close exit