I have an excel VBA script to take a file and upload it to my FTP site. What I would like to do is add a -speed
switch to the command to limit the transfer speed to something like 700k. I have the following code now that works great, just doesn't limit:
Call Shell( _
"C:\1a7j42w\WinSCP\WinSCP.com /log=C:\1a7j42w\WinSCP\excel.log /command " & _
"""open ftp://xxxxxxx:xxxxxxx@ftp.kaltura.com/"" " & _
"""put """"" & RealFile & """"""" " & _
"""exit""")
And I know from the WinSCP page here (https://winscp.net/eng/docs/scriptcommand_put) that I need to add a -speed=<700>
after the put
command, but I'm confused by all the quotes, and placement of this speed switch. I tried adding it after the put
command so it was like this:
"""put -speed=<700>""""" & RealFile & """"""" " & _
but that did not work. I also tried adding another space after the close bracket behind 700 and in front of the quotes, but that did not work either.
I'm sure I'm just not placing it in the correct location or doing the quotes/spaces right, but I'm not sure where to go from here. Any help would be greatly appreciated.