I'm using 188.8.131.52 via command line on a growing number of servers to backup a specific location. I'm using a Windows environmental variable %computername% so minimise customisation of the script per server.
I'm finding that when attempting to transfer to /%computername%/Data that because the /%computername% doesn't exist it fails. This makes sense and from my understanding this is by design. Is there however any switches I can use to change this so it does create the directory?
winscp.com /log=log.txt /script=backupScript.txt
backupScript.txt option batch abort option confirm off open username:password@server synchronize remote -delete "E:\Data" "/%computername%/Data" exit
Thanks in advance for your help. :)