Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Automatically upload a file using VB

Posted on 2001-06-21
3
130 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 50

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

Question has a verified solution.

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

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

790 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