Bat file opening session but will not transfer files

Advertisement

donnette
Joined:
Posts:
1
Location:
Denver, CO

Bat file opening session but will not transfer files

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,070
Location:
Prague, Czechia

Re: Bat file opening session but will not transfer files

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

Reply with quote

Advertisement

You can post new topics in this forum