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:
  #1  
Old September 23rd, 2003, 03:30 AM
nrasool nrasool is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 5 nrasool User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile Please Help - Inet/Form issue

Hi there

Is the following correct for vb. The issue is that when i change the server host, username and password, it keeps on coming up and saying remote host is not found.

When clicking on debug, it points to:
Form1.Inet1.Execute , "PUT """ & strLocal & """ " & strRemote

It doesn't seem to like: Form1.Inet1.RemoteHost = gsServer

Could you do this, like its in the code?

Attach to this post is the vb6.0 project file as listed here.

Here is the full listing of the code:
Code:
Public gsServer   As String
Public gsUser     As String
Public gsPswd     As String

Private Sub Command1_Click()
Form1.Inet1.AccessType = icUseDefault
Form1.Inet1.Protocol = icFTP
Form1.Inet1.RemoteHost = gsServer
Form1.Inet1.RemotePort = "21"
Form1.Inet1.Password = gsPswd
Form1.Inet1.UserName = gsUser
Form1.Inet1.RequestTimeout = "60"
strRemote = "test.html"
strLocal = "test.html"
Form1.Inet1.Execute , "PUT """ & strLocal & """ " & strRemote
MsgBox "ActinicMail has been uploaded", vbOKOnly
Dim ieApp As Object
Set ieApp = CreateObject("InternetExplorer.Application")
ieApp.Visible = True
ieApp.Navigate Text1 + "ActinicMailTest.pl"
End Sub

Private Sub Command2_Click()
Unload Form1
End Sub

Private Sub Text2_Change()
gsServer = Text2
End Sub

Private Sub Text3_Change()
gsUser = Text3
End Sub

Private Sub Text4_Change()
gsPswd = Text4
End Sub


Many thanks for you help
Kind Regards
Attached Files
File Type: zip ftp_vb_sc.zip (2.3 KB, 286 views)

Reply With Quote
  #2  
Old September 25th, 2003, 02:29 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
your remote ftp server is down or not accessed using your username and password..I try your code,it's run normally..

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Please Help - Inet/Form issue


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 3 hosted by Hostway