Solved

PUT File to WebServer From VB6 Application

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…
Suggested Courses
Course of the Month7 days, 4 hours left to enroll

622 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