Solved

Uploading to the web

Posted on 2000-04-10
11
168 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
Technology Partners: 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

Technology Partners: 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!

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

734 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