Host Does Not Exist When Using Parameter for the Filename

Advertisement

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

Description: error log host doest not exist

error_log.jpg

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,551
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum