Pasang Iklan

Whatsapp : 0822 5516 1055

Total Pengunjung

Tuesday 30 July 2013

Kumpulan inet1.excute Vb 6 ..!

The following table lists the supported FTP commands of the control:
OperationDescriptionExample
CD file1Change Directory. Changes to the directory specified in file1.
Execute , "CD docs\mydocs"
CDUPChange to Parent. Same as "CD .."
Execute , "CDUP"
DELETE file1Deletes the file specified in file1.
Execute , "DELETE discard.txt"
DIR [ file1 ]Searches the directory specified infile1. If file1 isn't supplied, the current working directory is searched. Use the GetChunk method to return the data.
Execute , "DIR /mydocs"
GET file1 file2Retrieves the remote file specified infile1, and creates a new local file specified in file2.
Execute , _
"GET getme.txt C:\gotme.txt"
MKDIR file1Creates a directory as specified infile1. Success is dependent on user privileges on the remote host.
Execute , "MKDIR /myDir"
PUT file1 file2Copies a local file specified in file1 to the remote host specified in file2.
Execute , _
"PUT C:\putme.txt /putme.txt"
PWDPrint Working Directory. Returns the current directory name. Use the GetChunk method to return the data.
Execute , "PWD"
QUITTerminate current connection
Execute , "QUIT"
RECV file1 file2Same as GET.
Execute , _
"RECV getme.txt C:\gotme.txt"
RENAME file1 file2Renames a file. Success is dependent on user privileges on the remote host.
Execute , 
"RENAME old.txt new.txt"
RMDIR file1Remove directory. Success is dependent on user privileges on the remote host.
Execute , "RMDIR oldDir"
SEND file1Copies a file to the FTP site. (same as PUT.)
Execute , _
"SEND C:\putme.txt /putme.txt"
SIZE file1Returns the size of the file specified infile1.
Execute "SIZE /largefile.txt"

Important   If your proxy server is a CERN proxy server, direct FTP connections (using the Execute method) are disallowed. In that case, to get a file, use the OpenURL method with the Open, Put, and Close statements, as shown earlier in "Saving to a File Using the OpenURL Method." You can also use the OpenURL method to get a directory listing by invoking the method and specifying the target directory as the URL.

Using the Execute Method with the HTTP Protocol

The HTTP protocol allows client machines to request data from the server using the GET, HEAD, POST, and PUT commands. These operations are shown in the following table:
OperationDescriptionExample
GETRetrieves the file named in url.
Execute "http://www.microsoft.com" & _
"/default.htm", "GET"
HEADRetrieves only the headers of the file named in the URL property.
Execute , "HEAD"
POSTProvides additional data to support a request to the remote host.
Execute , "POST", strFormData
PUTReplaces data at the specified URL.
Execute , "PUT", "replace.htm"


\

0 komentar:

Popular Posts

@jablayInside. Powered by Blogger.
Scroll To Top