Solved

Automatically upload a file using VB

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

706 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

16 Experts available now in Live!

Get 1:1 Help Now