Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
Inet ftp SEND Question
Old
  (#1)
dartszeeland.tk
Guest
 
Posts: n/a
Default Inet ftp SEND Question - 06-04-2007, 08:52 AM

Hi,

i want to upload a file from my computer to a ftp.....

this is the code:

Inet.RemoteHost = "localhost" '(not ftp:// in front of it)
Inet.RemotePort = "21"
Inet.UserName = "user"
Inet.P***word = "p***word"

Inet.Execute , "CD dir1" & vbCrLf
Do While Inet.StillExecuting
DoEvents
Loop

Inet.Execute , "CD dir2" & vbCrLf
Do While Inet.StillExecuting
DoEvents
Loop

Inet.Execute , "SEND " & App.Path & "\file.xml file.xml" & vbCrLf
Do While Inet.StillExecuting
DoEvents
Loop


I tryed without the & vbcrlf and played with SEND and PUT but that did not
work either....

can anyone tell me whats wrong with this code? OR make changes for me??


A very confused man named Peter......


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top