Solved

PUT File to WebServer From VB6 Application

Posted on 2004-03-29
2
283 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

803 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