SunQuest
           Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old May 8th, 2008, 04:23 AM
IMaVBNoob's Avatar
IMaVBNoob IMaVBNoob is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 64 IMaVBNoob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 h 29 m 17 sec
Reputation Power: 3
Send a message via MSN to IMaVBNoob
FTP help for vb2005

I think ive got it oinly this is for vb6 im goin to open it up in vb2005 and hopfully it converts and i have minimal problems if any but atm the debugger stops at this line

Code:
FTP.Inet1.Execute , "PUT """ & strLocal & """ " & strRemote



any ideas???? i get a "runtime error 35754 - Unable to connect to host"



Code:
Option Explicit
Dim strRemote As String

Dim strLocal As String
Private Sub Form_Load()
With Form1

Inet1.AccessType = icUseDefault

Inet1.Protocol = icFTP

Inet1.RemoteHost = "funkwhatyouheard.freehostia.com"

Inet1.RemotePort = "20"

Inet1.Password = "password"

Inet1.UserName = "username"

Inet1.RequestTimeout = "180"

End With
Label1.Caption = Inet1.URL
strRemote = "Data\"
strLocal = "c:\Data\storty1.txt"
Inet1.Execute , "PUT""" & strLocal & """ " & strRemote
End Sub
End Sub

Last edited by IMaVBNoob : May 8th, 2008 at 06:38 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > FTP help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway