Solved

Uploading to the web

Posted on 2000-04-10
11
169 Views
Last Modified: 2010-05-02
Is there any way I can easily upload files to the Internet using VB6? I can download text and HTL with the Inet control, but I need to be able to upload things too.
0
Comment
Question by:mi5
[X]
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
  • 6
  • 5
11 Comments
 
LVL 9

Accepted Solution

by:
samopal earned 70 total points
ID: 2700097
The same way...


Inet1.Execute "Ftp://ftp.myftp.com", _
   "PUT C:\MyDocuments\Send.txt SentDocs\Sent.txt"

HTH
0
 

Author Comment

by:mi5
ID: 2700496
If I have, say, a web account at geocities, is it possible to send a text file there (using ftp.geocities.com)? Geocities requires a user name and password for ftp as each user has their own folder.
0
 
LVL 9

Expert Comment

by:samopal
ID: 2700588
Sure..

Inet1.Execute "ftp://UserName:password@ftp.geocities.com", _
   "PUT C:\MyDocuments\Send.txt SentDocs\Sent.txt"


HTH
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:mi5
ID: 2700615
Just one more thing... whats the SentDocs\Sent.txt bit. Is that where it is to be sent to?
0
 
LVL 9

Expert Comment

by:samopal
ID: 2700650
C:\MyDocuments\Send.txt - this is the path to the file on your local computer
SentDocs\Sent.txt - this is the destination path on ftp
0
 

Author Comment

by:mi5
ID: 2700660
Just one more thing... whats the SentDocs\Sent.txt bit. Is that where it is to be sent to?
0
 

Author Comment

by:mi5
ID: 2700666
Just one more thing... whats the SentDocs\Sent.txt bit. Is that where it is to be sent to?
0
 

Author Comment

by:mi5
ID: 2700676
If I want it in the 'root' path of my folder, then do I just have Sent.txt without the slash?
0
 
LVL 9

Expert Comment

by:samopal
ID: 2700753
Yes
0
 

Author Comment

by:mi5
ID: 2704031
Thanks for your help - this worked fine. Is there an easier way of downloading files (GET command?)?
0
 
LVL 9

Expert Comment

by:samopal
ID: 2704271
Yes...

strFile = Inet1.OpenURL(URLlocation)

where URLlocation = "http://www....." or "ftp://....."
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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
Course of the Month10 days, 23 hours left to enroll

632 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