Solved

script to Get 2 text files from remote server

Posted on 2014-07-26
5
194 Views
Last Modified: 2014-08-06
Hi,

We have 2 txt files in the remote server, which we need to download to our local server folder.
 We couldn't use the FTP task on SSIS, since this is a Secured FTP.
I'm looking for a script to run in SSIS 2009, so that i can
1. Get those files from the remote server
2. Delete those two files on the remote server

Can someone help with the script?
0
Comment
Question by:pvsbandi
  • 2
  • 2
5 Comments
 
LVL 32

Expert Comment

by:Robberbaron (robr)
ID: 40222395
are you able to installed the ftp client part of putty ?
this can be scripted but sftp needs a 3rd party app ...
0
 

Author Comment

by:pvsbandi
ID: 40222927
We have got filezilla.. Is it possible to script based on that?
0
 
LVL 32

Accepted Solution

by:
Robberbaron (robr) earned 500 total points
ID: 40223616
no filezilla is a GUI based app.. (and a good one !)

with psftp you can start the application with an input file of commands.
http://www.putty.org/   or http://the.earth.li/~sgtatham/putty/0.53b/htmldoc/Chapter6.html

also see http://winscp.net/eng/docs/scripting  which i have used before.
0
 

Author Closing Comment

by:pvsbandi
ID: 40243593
Thanks! We used Winscp
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome to part one of a multi-part tutorial series, VBScript for Windows System Administrators.  The goal of this series is to teach non-programmers how to write useful VBS code to automate their environment, and perform tasks faster, and in a more…
This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now