Solved

Uploading to the web

Posted on 2000-04-10
11
167 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

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

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

726 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