FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

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 March 4th, 2004, 01:58 PM
Ramihg's Avatar
Ramihg Ramihg is offline
unlink /usr/bin/*
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Vancouver, Canada
Posts: 181 Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 3 h 13 m 42 sec
Reputation Power: 64
FTP Problem

Hey i made a program that accesses FTP in a very stupid way, for fast actions.
Code:
Function ftpReady() As Boolean
If ftp.StillExecuting = True Then
    ftpReady = False
Else
    ftpReady = True
End If
End Function
Private Sub cmdConnect_Click()
Label1.Caption = "Connecting"
ftp.Protocol = icFTP
ftp.URL = "ftp.ei-planet.com"
ftp.UserName = "eiplanet"
ftp.Password = "*"
ftp.RequestTimeout = 40

ftp.Execute , "DIR"

Do While ftp.StillExecuting
    DoEvents: DoEvents: DoEvents
Loop
Label1.Caption = "Connected"
End Sub

Private Sub cmdExecute_Click()
Dim what As String
Dim where As String
On Error GoTo ERR1
Label1.Caption = "Proccessing"

Select Case txtCommand.Text
Case "special:goto"
    where = InputBox("Which directory do you want to go to")
    ftp.Execute , "CD " & Chr(34) & where & Chr(34)
    Do Until ftpReady
        DoEvents: DoEvents: DoEvents: DoEvents
    Loop
    Label1.Caption = "Connected"
    Exit Sub
Case "special:download"
    what = InputBox("Which file do you want to download")
    ftp.Execute , "GET " & Chr(34) & what & Chr(34) & " " & Chr(34) & "R:\" & Chr(34)
    Do Until ftpReady
        DoEvents: DoEvents: DoEvents: DoEvents
    Loop
    Label1.Caption = "Connected"
    Exit Sub
End Select
MsgBox "You have made a wrong command"
Label1.Caption = "Connected"
Exit Sub
ERR1:
MsgBox "ERROR"
End Sub


Private Sub Form_Unload(Cancel As Integer)
ftp.Cancel
End Sub

but when i open the program, enter special:recieve and write the file, nothing happens.
i wanna know whats the problem
thanks in advace

Reply With Quote
  #2  
Old March 4th, 2004, 04:49 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,713 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 23 h 57 m 59 sec
Reputation Power: 688
There doesn't seem to be anything in your code that will process "special:receive"
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #3  
Old March 4th, 2004, 05:16 PM
Ramihg's Avatar
Ramihg Ramihg is offline
unlink /usr/bin/*
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Vancouver, Canada
Posts: 181 Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level)Ramihg User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 3 h 13 m 42 sec
Reputation Power: 64
i mean when i write special:download

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > FTP Problem


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