Solved

script to Get 2 text files from remote server

Posted on 2014-07-26
5
200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Script to copy or move mouse-selected collection of files plus targets referenced by shortcuts (.lnk) The purpose of this article is to help illuminate the real challenges and options available (where they may exist) for utilizing simple scriptin…
In this article we want to have a look at the directory attributes which are used by Microsoft to store the so called Security Identifiers (SID). These SIDs plays an important role in delegating and granting permissions and in authentication of trus…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 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