|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
You can find these answers in the VB documentation.
http://msdn.microsoft.com/library/e...tGetSetting.asp |
|
#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. |
|
#6
|
|||
|
|||
|
All the FTP commands and reply codes.
http://www.vbip.com/winsock/winsock_ftp_01.asp http://www.vbip.com/winsock/winsock_ftp_ref_01.asp |
|
#7
|
|||
|
|||
|
you could just create a batch file then execute that.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > ftp file transfer sample code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|