Solved

PUT File to WebServer From VB6 Application

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

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…
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…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

759 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