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 September 17th, 2003, 02:32 AM
thcc thcc is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Malaysia
Posts: 78 thcc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 57 m 6 sec
Reputation Power: 5
ftp file transfer sample code

The code that i get it from one of the web site and i dun understand it. Can someone pls explain to me in detail?
Code:

With Inet
    .URL = "ftp://" & GetSetting("POSSys", "Ftp", "Adrs", "")
    .UserName = GetSetting("POSSys", "Ftp", "Id", "")
    .Password = GetSetting("POSSys", "Ftp", "Pw", "")
    .Execute , "CD POSUpdates/Sales/" & strCustomerId
    End With
    Do Until Inet.StillExecuting = False
    Inet.Execute , "SEND " & Is_ExportFile"
    Do Until Inet.StillExecuting = False
    Inet.Execute , "SEND " & Is_ExportFile2"
    Do Until Inet.StillExecuting = False
    Inet.Execute , "SEND " & Is_ExportFile3"
    Do Until Inet.StillExecuting = False


i would like 2 know especially what i should put into the
.URL
.Username
.Password
.Execute
__________________
Programming is interesting

Reply With Quote
  #2  
Old September 17th, 2003, 02:26 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,719 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: 1 Month 50 m 18 sec
Reputation Power: 688
If you are going to put files on a remote server using ftp you must log on to that server first.

The URL is the web address of the ftp server
the Username is your login username on that server
the Password is the password on the ftp server
Execute is the method of the Internet Transfer Control that performs the request.

Refer to your VB6 documentation, specifically the Internet Transfer Control

Reply With Quote
  #3  
Old September 17th, 2003, 09:01 PM
thcc thcc is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Malaysia
Posts: 78 thcc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 57 m 6 sec
Reputation Power: 5
i would like to know also



Code:
 
    .URL = "ftp://" & GetSetting("POSSys", "Ftp", "Adrs", "")
    .UserName = GetSetting("POSSys", "Ftp", "Id", "")
    .Password = GetSetting("POSSys", "Ftp", "Pw", "")
    .Execute , "CD POSUpdates/Sales/" & strCustomerId
    


What is mean by GetSetting and the 4 parameters pass into it?

Last edited by thcc : September 17th, 2003 at 09:09 PM.

Reply With Quote
  #4  
Old September 17th, 2003, 11:48 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,719 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: 1 Month 50 m 18 sec
Reputation Power: 688
You can find these answers in the VB documentation.

http://msdn.microsoft.com/library/e...tGetSetting.asp

Reply With Quote
  #5  
Old September 18th, 2003, 12:44 AM
thcc thcc is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Malaysia
Posts: 78 thcc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 57 m 6 sec
Reputation Power: 5
thanks
Code:
' Variant to hold 2-dimensional array returned by GetSetting.
Dim MySettings As Variant
' Place some settings in the registry.
SaveSetting "MyApp","Startup", "Top", 75
SaveSetting "MyApp","Startup", "Left", 50

Debug.Print GetSetting(appname := "MyApp", section := "Startup", _
                       key := "Left", default := "25")

DeleteSetting "MyApp", "Startup"


this example is get from MSDN
no result is return??

Last edited by thcc : September 18th, 2003 at 01:04 AM.

Reply With Quote
  #6  
Old September 18th, 2003, 04:03 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

Reply With Quote
  #7  
Old September 19th, 2003, 02:09 PM
samlab samlab is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 33 samlab User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
you could just create a batch file then execute that.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > ftp file transfer sample code


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