Andreas
Andreas

Reputation: 23958

Upload file through vba and WinSCP.com

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:[email protected]
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 enter image description here

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.

Upvotes: 0

Views: 1004

Answers (1)

Vincent G
Vincent G

Reputation: 3188

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

Upvotes: 2

Related Questions