Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: HELP!!! Can I FTP from ASP?


Message #1 by "Rob Scott" <rscott@m...> on Tue, 21 Aug 2001 17:34:46
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.
Message #2 by "phil griffiths" <pgtips@m...> on Wed, 22 Aug 2001 09:41:36
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.

  Return to Index