Re: Inet1 connecting but can't upload - any help appreciated
- From: "Matt Williamson" <ih8spam@xxxxxxxxxxx>
- Date: Tue, 9 May 2006 09:50:53 -0400
Alan-
Put is an HTTP command. Use Send for FTP.
HTH
Matt
"Alan" <alanlaird@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:44608f9d$1@xxxxxxxxxxxxxxxxxxxxxxxx
Hi
I am using the Inet control to link to our web server. I can get the
control to display the directory structure and change directories so I
know it is connecting properly. But I can't get it to GET or PUT files to
the server. I cannot determine why.
I can upload and download files using MS FrontPage without any trouble.
I have checked the Properties of the destination folder. I was hoping to
see if it was write protected but all I can view is:
Allow scripts to be run
Allow files to be browsed
Allow anonymous uploads to this directory
Allow uploaded files to overwrite existing filenames
I have tried various combinations of these four options but to no avail.
I have spent more than a day on this and it is becoming very frustrating.
Any help would be appreciated.
The code I am using is:
Inet1.AccessType = icUseDefault
Inet1.URL = "ftp://XXXXXXXX"
Inet1.UserName = "xxxxxxx"
Inet1.Password = 'yyyyyyy"
Dim strSourceFile As String
Dim strDestinationFile As String
strSourceFile = "C:\Documents and Settings\Alan\Desktop\FileToUpload.txt"
strDestinationFile = "FTP://XXXXXXX/FileToUpload.txt
Inet1.Execute , "PUT " & strSourceFile & " " & strDestinationFile
Do While Inet1.StillExecuting
DoEvents
Loop
Thanks...Alan
---------
.
- Follow-Ups:
- Re: Inet1 connecting but can't upload - any help appreciated
- From: Matt Williamson
- Re: Inet1 connecting but can't upload - any help appreciated
- References:
- Prev by Date: Re: Problems with help files using IE5.5 on W2Ksp4
- Next by Date: Re: Is Scripting.Dictionary considered as evil as FSO?
- Previous by thread: Inet1 connecting but can't upload - any help appreciated
- Next by thread: Re: Inet1 connecting but can't upload - any help appreciated
- Index(es):
Relevant Pages
|
Loading