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

martin

Please insert any command that prints anything after the put (before exit). Like "option batch".
Also put echo command after winscp.com in your batch file.
And post a screenshot again. Thanks.
Krystal

here is my script.. pretty simple and works for the rest of the people i do SFTP too not sure why it is not putting in a line feed..

option batch on
option confirm off
open 31Edmond
put C:\Facilities\31_Edmond_Baptist\Reports\*.* /inbound/prod/emond/
exit


see :) simple.. launching from a batch file that looks like this

@echo off

winscp.com /command /script="C:\Facilities\31_Reports\Scripts\reports.txt"

exit

I don't see anything wrong to be honest...
martin

Re: SFTP Upload forcing me to confirm transfer.

The prompt does not come from WinSCP.
Though it is strange that there's no line feed after the transfer progress from WinSCP. Have the script finished correctly?
Krystal

SFTP Upload forcing me to confirm transfer.

I've written several scripts to upload files to remote sftp servers for various customers but my newest one is forcing me to confirm the upload with a y/n when none of my others are.. Not a hard script as seen below so am wondering is this forcing me to confirm and have to touch the upload manually coming from their side or is this something i can suppress on my side? Very annoying ;P

<invalid hyperlink removed by admin>