Solved

PUT File to WebServer From VB6 Application

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now