Topic "Host Does Not Exist When Using Parameter for the Filename"

Author Message
Guest




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
Code:

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

pause


Script.Txt


Code:

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

Code:

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

pause



Script.txt
Code:

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
error_log.jpg (22.75 KB)

Description: error log host doest not exist

error_log.jpg

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
The ancient version of WinSCP you are using (4.1.7, over 6 years old) does not support /parameter.
Please upgrade.
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