By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,968 Members | 1,215 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,968 IT Pros & Developers. It's quick & easy.

ftp using Internet Transfer Ctrl

P: n/a
Hi all. I'm trying to use the Internet Transfer Control in an Access03
database to upload a file using FTP. It's not giving me any errors but is
completely failing to upload the file. Here's the code I'm using (with
pertinent info removed):

With Forms!Switchboard!INetCtrl
.URL = ftp://ftp.site.name
.UserName = "myusername"
.Password = "mypassword"
.Execute , "PUT c:\interest.html /interest.html"
End With

I've confirmed the ftp site name and my username & pwd by manually ftp'ing
the file and it all works. This is a new area for me so any help would be
appreciated.
TIA
Jon
Mar 1 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
In your Execute statement, shouldn't the forward slash after
"c:\interest.html" be a backslash?

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
Over 1125 users have come to me from the newsgroups requesting help
re******@pcdatasheet.com

"Jon Weston" <jo********@hotmail.com> wrote in message
news:wL6Nf.82534$H%4.69222@pd7tw2no...
Hi all. I'm trying to use the Internet Transfer Control in an Access03
database to upload a file using FTP. It's not giving me any errors but is
completely failing to upload the file. Here's the code I'm using (with
pertinent info removed):

With Forms!Switchboard!INetCtrl
.URL = ftp://ftp.site.name
.UserName = "myusername"
.Password = "mypassword"
.Execute , "PUT c:\interest.html /interest.html"
End With

I've confirmed the ftp site name and my username & pwd by manually ftp'ing
the file and it all works. This is a new area for me so any help would be
appreciated.
TIA
Jon

Mar 1 '06 #2

P: n/a
PC Datasheet wrote:
In your Execute statement, shouldn't the forward slash after
"c:\interest.html" be a backslash?

--
To the original poster:

It is commonly accepted that these newsgroups are for free
exchange of information. Please be aware that PC Datasheet
is a notorious job hunter. If you are considering doing
business with him then I suggest that you take a look at
the link below first.

http://home.tiscali.nl/arracom/whoissteve.html

Randy Harris
Mar 1 '06 #3

P: n/a

"PleaseStopAdvertising" <pl****@no.spam.net> wrote in message
news:IL*******************@newssvr11.news.prodigy. com...
PC Datasheet wrote:
In your Execute statement, shouldn't the forward slash after
"c:\interest.html" be a backslash?

--
To the original poster:

It is commonly accepted that these newsgroups are for free
exchange of information. Please be aware that PC Datasheet
is a notorious job hunter. If you are considering doing
business with him then I suggest that you take a look at
the link below first.

http://home.tiscali.nl/arracom/whoissteve.html

Randy Harris


???odd. nope, Randy, I wasn't thinking of doing business with anyone - just
asking a question. Thanks for the warning, though, I think.

As for the slash: I copied the code directly from the msdn example and
modified it slightly with my own parameters. ...hang on a tic...ok, I tried
it as a backslash. Doesn't work, but doesn't spit out an error, either.

Thanks for the idea, though. Any others? Is there a better way to ftp than
using the Internet Transfer Control?
Jon
Mar 1 '06 #4

P: n/a
Why do you like commenting on things you know nothing about? The forward
slash is correct syntax.

John... Visio MVP
"PC Datasheet" <no****@nospam.spam> wrote in message
news:7J*****************@newsread2.news.atl.earthl ink.net...
In your Execute statement, shouldn't the forward slash after
"c:\interest.html" be a backslash?

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
Over 1125 users have come to me from the newsgroups requesting help
re******@pcdatasheet.com

"Jon Weston" <jo********@hotmail.com> wrote in message
news:wL6Nf.82534$H%4.69222@pd7tw2no...
Hi all. I'm trying to use the Internet Transfer Control in an Access03
database to upload a file using FTP. It's not giving me any errors but
is completely failing to upload the file. Here's the code I'm using
(with pertinent info removed):

With Forms!Switchboard!INetCtrl
.URL = ftp://ftp.site.name
.UserName = "myusername"
.Password = "mypassword"
.Execute , "PUT c:\interest.html /interest.html"
End With

I've confirmed the ftp site name and my username & pwd by manually
ftp'ing the file and it all works. This is a new area for me so any help
would be appreciated.
TIA
Jon


Mar 1 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.