Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 138
  • Last Modified:

Automatically upload a file using VB

How can I automatically upload a file to a web server from a VB aplication?
0
SBinedell
Asked:
SBinedell
1 Solution
 
ianouiiCommented:
setup a FTP site at the web server.

use inet in VB 6.0 to help u to upload the files over. just add in the component, Microsoft internet control 6.0 & place the component on your form. u'll be able to use it then

With Inet1
       .URL = "the url name"
       .UserName = "The user name for login"
       .Password = "the password to login"
       .Execute , "put " & "c:\"& "test.txt /" & "the file name that u want to be at server side"
    End With

if u want to make automated, just call it at the form_load. if u want it to work routinely, add a timer onto the form, call the function routinely then.

good luck.
0
 
Ryan ChongCommented:
<Listening..>
0
 
SBinedellAuthor Commented:
I was wanting to do this without setting up FTP on the web server and without using a third party control, but this will do as well.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now