Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transfer file with INET 1

Status
Not open for further replies.

Freemo

MIS
Oct 25, 2005
71
0
0
GB
Hello

I am trying to copy a file to a web server with the INET component. The following is the code i am using:

With Inet1
.AccessType = icDirect
.Protocol = icFTP
.URL = " .UserName = "Username"
.Password = "password"
.RemotePort = 21
.RequestTimeout = 50
.Execute , "c:\test1.htm", rs1!LexCode & ".htm"
End With

But when i try the code i get the error:

Run-time error '35756':

Unable to complete request.

Can anybody shed any light on this dark and gloomy problem.

Thanx for your time.
 
Thanx for the input boggg1

I tried your method to openurl and this eliminated the error but the file isn't transferring over. And i am not behind a proxy or anything like it.
 
Looks like you're missing the PUT keyword. Try
Code:
Execute , "[COLOR=red]PUT [/color]c:\test1.htm", rs1!LexCode & ".htm"

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top