Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting File on FTP Server after DTS Pull 1

Status
Not open for further replies.

bustercoder

Programmer
Mar 13, 2007
96
Hello,

I have a DTS Package which connects to an FTP server, pulls and process a file. I am having a challenge with deleting the file on the FTP server after I pull it. is this possible from the DTS package? Is it an FTP setting? I confirmed that I have permissions to delete files from the FTP server so any help would be appreciated.

Thanks,
Buster
 
Write a batch file or VBScript file to delete your file and then call it with an execute process task.
 
Thanks for the advice. Could you please show me an example of such a script? I did some research and I now it involves something like:

CD /sourcedirectory
LCD /destinationdirectory
PROMPT
MGET *
MDELETE *

But I'm not quite sure how to put it together in an activex script or batch file. if you could show me an example that would be great.

Thanks,
Buster
 
Read Priyank Gajera's post at the end of this thread. He wrote a script task to remove the files. The problem you have is well known issue with non-windows ftp servers and is not fixed yet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top