Upload file through vba and WinSCP.com

拈花ヽ惹草 提交于 2019-12-10 11:54:08

问题


I don't know what is happeining since it's just flashing by the screen. But I have this code in vba.

Shell "H:\Dokument\Avvikelser\WinSCP.com /script=H:\Dokument\Avvikelser\script.txt"

In script.txt i have:

open ftpes://USERNAME:PASSWORD@ftp.SERVER.nu
put H:\Dokument\Avvikelser\lista.txt /Avvikelser/lista.txt
close

As I have understood it I need ftpes to make it passive?

I can't even start WinSCP from cmd prompt

I need to use a cmd style solution as I can't install software on the computer.
The file is not uploaded when the script ends.


回答1:


WinSCP.COM is only an console interface program for WinSCP.EXE, you need to have both in the same directory.

See https://winscp.net/eng/docs/executables



来源:https://stackoverflow.com/questions/51762332/upload-file-through-vba-and-winscp-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!