klewis10367
MIS
Does any one have the general code using the ActiveX script task to delete a file from an FTP site?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
'**********************************************************************
' Visual Basic ActiveX Script
'************************************************************************
Function Main()
Dim oFSO, oFile
'************************************************************************
' Delete file from FTP server.
'************************************************************************
set oFSO = CreateObject("Scripting.FileSystemObject")
set oFile = oFSO.CreateTextFile("c:\ftp_remove_file.txt", true)
oFile.writeline "lcd c:\"
oFile.writeline "open xxx.xxx.x.xx"
oFile.writeline "login_name"
oFile.writeline "password"
oFile.writeline "cd /download"
oFile.writeline "del somefile.txt"
oFile.writeline "quit"
oFile.Close
set oFile = nothing
set oFSO = nothing
Main = DTSTaskExecResult_Success
End Function
Win32 process: ftp.exe
Parameters: -i -s:c:\ftp_remove_file.txt