Is there anyway to FTP files from an ASP page? I want to create a file on
the fly from a DB query and then FTP it to another location. Is there
anyway to do this?
If there aren't any FTP objects for this, can I call a batch file from ASP
(then I could just write a DOS script and send the file that way).
Any help is appreciated.
Do u have Visual basic? If so u can write a simple COM object that does
this using the Internet Transfer Control, example
With Inet1
.URL = "ftp://ftp.someFTPSite1020.com"
.UserName = "John Smith"
.Password = "..."
.Execute ,"PUT C:\putme.txt /putme.txt" 'Put the file.
.Execute ,"CLOSE" ' Close the connection.
End With
I don't know about running batch files from ASP.
> Is there anyway to FTP files from an ASP page? I want to create a file
on
> the fly from a DB query and then FTP it to another location. Is there
> anyway to do this?
>
> If there aren't any FTP objects for this, can I call a batch file from
ASP
> (then I could just write a DOS script and send the file that way).
>
> Any help is appreciated.