Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

Re: Host Does Not Exist When Using Parameter for the Filename

The ancient version of WinSCP you are using (4.1.7, over 6 years old) does not support /parameter.
Please upgrade.
Guest

Host Does Not Exist When Using Parameter for the Filename

Hi I'm trying to pass a filename parameter from my SSIS Task.

What i did was i created a BAT file which calls for the script.

The script below works without parameter

BAT File
@echo off

cls
C:
cd\WorkingDirectory
winscp417 /console /script=script.txt

pause


Script.Txt


option batch on

option confirm off
open SSIS@server.com
get /Source/BV_201503.zip C:\WorkingDirectory\
close
exit


Now, if I introduce a parameter with the codes below i'm getting "Host Does Not Exist"

BAT File

@echo off

cls
C:
cd\BOTDataImport
winscp417 /console /script=script.txt /parameter BV_201503.zip 

pause


Script.txt
option batch on

option confirm off
open SSIS@Server
get /Source/%1% C:\WorkingDirectory\
close
exit


Hope someone can lead me to the right direction.

Many thanks guys