Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Automatically upload a file using VB

Posted on 2001-06-21
3
Medium Priority
?
137 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 300 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 54

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Suggested Courses

783 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