Topic "Bat file opening session but will not transfer files"

Author Message
donnette
[View user's profile]

Joined: 2017-04-25
Posts: 1
Location: Denver, CO
Hi,

My bat file opens the session but will not move the files. The commands are below
*********************************************

winscp.com /ini=nul /command^
open ftp:@hostkey----this works fine

put -latest Z:\ARExtract\outgoing\* /inbound/test/arextract
exit

*******************************************************

Can anyone help me solve?

Thank you,
Donnette
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26150
Location: Prague, Czechia
Code:
winscp.com /ini=nul /command ^
    "open ftp://username:password@host/" ^
    "put  -latest Z:\ARExtract\outgoing\* /inbound/test/arextract/" ^
    "exit"


Use Generate Code function to have WinSCP GUI generate a batch file template for you:
https://winscp.net/eng/docs/ui_generateurl#script
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License