creating upload component using ftp

create an component for uploading the file to an remote machine using ftp
commands?
srinimrsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

srinimrsAuthor Commented:
Sir i want in an clear cut manner
so please sent the idea behind this?
0
mcriderCommented:
You can use the Microsoft Internet Transfer Control (MSINET.OCX) to FTP Files...

See the EXECUTE method help pages of the control for more information...


Basically it works like this:

The following will send the file "c:\autoexec.bat" to the host "caas.com".  The remote file will be called "testfile" and will be put in the  directory called "incoming":

    Inet1.URL = "ftp://caas.com" 'CHANGE caas.com TO REMOTE HOSTNAME
    Inet1.Password = "noneofyourbusiness" 'Password to logon to remote
    Inet1.UserName = "mcrider" 'UserID to logon remote
    Inet1.Execute , "CD incoming" 'Change remote dir to incoming
'WAIT UNTIL WE'RE FINISHED EXECUTING THE CD COMMAND.
        Do
          DoEvents
        Loop Until Not Inet1.StillExecuting
    Inet1.Execute , "SEND c:/autoexec.bat testfile"
'WAIT UNTIL WE'RE FINISHED EXECUTING THE SENDCOMMAND.
        Do
          DoEvents
        Loop Until Not Inet1.StillExecuting Inet1.Execute , "CLOSE"


To add this control to your program, right-click on the toolbox (the window with the TextBox, PictureBox, ListBox, etc.) and select "Components..." then select "Microsoft Internet Transfer Control" from the list.


Hope this helps...



Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
srinimrsAuthor Commented:
sir mcirder
please in briefly how ftp works
i want an clear idea about this.
please send to the mail-id
srini_mkr@hotmail.com
0
mcriderCommented:
FTP is a protocol for transferring files from one system to another. It is a client/server protocol and is operating system independent.  This means you can FTP a file from a Windows environment to a UNIX environment.

An FTP server is run on a system and it waits for clients to connect to it.

The Microsoft Internet Transfer Control operates as a client.  You set the properties of this control for connecting to an FTP server (.URL, .UserName, and .Password) and then execute FTP commands using the .Execute method.

See the help pages on this control for more information...

Hope this helps.  Thanks for the points!


Cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.