Solved

PUT File to WebServer From VB6 Application

Posted on 2004-03-29
2
284 Views
Last Modified: 2012-08-13
Hello All!

I have an application that opens an .XML file located in a /subdir on my webserver.  I then edit / add to this .XML file and would then like to A: Remove or Delete the original file on the WebServer and B: Upload the new file.

Before everybody jumps all over me for my TOTAL lack of XML knowledge,  the reason I don't want to have a web page in place to allow the edit is security.  I only want to be able to edit the XML file through my application.  I've tried the Inet control, but keep getting the 'Unable to connect to remote host'.  Note that I can ftp through IE with no problem.

Thanks for the help!

JB
0
Comment
Question by:jwbryant
2 Comments
 
LVL 17

Expert Comment

by:zzzzzooc
ID: 10704341
You can upload to the server with Inet like this:

Call Inet1.Execute("ftp://username:password@127.0.0.1", "PUT /source.txt /destination.txt")

Where "/source.txt" would be the file you're uploading. If you use "/source.txt" it will try to upload "c:\source.txt". So.. to upload "C:\Test\source.bmp" you'd use "/Test/source.bmp". Hope that's understandable. :P
0
 
LVL 26

Accepted Solution

by:
EDDYKT earned 125 total points
ID: 10704509
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

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…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…

809 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