Need help with setting up a VBScript for uploading Text Files to an FTP server. Try to write a VBscript for a DTS
package that will accomplish this.
This is the Code I Tried'**********************************************************************
' Visual Basic ActiveX Script
'************************************************************************
Function Main()
inet1.URL="ftp://161.58.223.183"
inet1.username="<myusername>"
inet1.password="<mypassword>"
inet1.execute "PUT c:\website_export_files\cutomer_data.txt customer_data.txt"
inet1.execute "close"
inet1.execute "quit"
Main = DTSTaskExecResult_Success
End Function
error message -->object required 'inet1'
" error in line 7 "
Any help would be appreciated
package that will accomplish this.
This is the Code I Tried'**********************************************************************
' Visual Basic ActiveX Script
'************************************************************************
Function Main()
inet1.URL="ftp://161.58.223.183"
inet1.username="<myusername>"
inet1.password="<mypassword>"
inet1.execute "PUT c:\website_export_files\cutomer_data.txt customer_data.txt"
inet1.execute "close"
inet1.execute "quit"
Main = DTSTaskExecResult_Success
End Function
error message -->object required 'inet1'
" error in line 7 "
Any help would be appreciated