Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Yizi

SOLVED

Solved, missed the script=

winscp.exe /console /script=uploadftp.txt
Yizi

Stuck on host

Hi there,

Trying to upload few files with .csv extension and when I run the bat file it gets stuck on the cmd screen saying
Host:


Can anyone help me, here is my code:

option batch on

option confirm off
open user:password@domain.com
option transfer binary
cd /Imports
put "C:\location\*.csv"
close
exit


@echo off

c:
cd\
cd program files (x86)\WinSCP
winscp.exe /console /uploadftp.txt
Exit