Solved

Automatically upload a file using VB

Posted on 2001-06-21
3
128 Views
Last Modified: 2010-05-02
How can I automatically upload a file to a web server from a VB aplication?
0
Comment
Question by:SBinedell
3 Comments
 
LVL 5

Accepted Solution

by:
ianouii earned 100 total points
ID: 6216879
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
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 6217288
<Listening..>
0
 

Author Comment

by:SBinedell
ID: 6223144
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now