AddaByte    Programmers' Script Repository
Free and low cost software.
spacer
Find out about our beautiful fractal backgrounds at abm-enterprises


Newsletter Signup
Name
Email
 

  ASP - Tutorials - FTP from Scripting Host
 


Save up to 75% on software

Drive Clone

the best name in hosting


<%@ Language = "VBScript"%>

<%
filename = "LocalFile.txt"
set FSO = Server.CreateObject("Scripting.FileSystemObject")
set myFile = FSO.CreateTextFile(Server.MapPath(filename), 8, true)
MyFile.WriteLine "YeeHaaa"
myFile.Close

set myFile2 = FSO.CreateTextFile(Server.MapPath("test.ftp"), 8, true)
myFile2.WriteLine "open machinename 21" & chr(13)
myfile2.WriteLine "user Anonymous Password" & chr(13)
myfile2.WriteLine "put " & filename & " RemoteFile.txt"
myfile2.WriteLine "quit"
myfile2.Close

Set WshShell = server.CreateObject("WScript.Shell")
runStr="%comspec% /c ftp -n -v -d -s:test.ftp>logfile.txt"
rc=WshShell.Run (runStr, 1, TRUE)
%>
  What does it do?
   no description given
 
  Features
  Added by Added Downloads Rating Popularity

  rpgivpgmr

1:05:39 PM Sunday, January 25th 2009

7

not rated

 
 
  About the file
  Size Download Rate It  

  758 KB
  download this file
 
 
  Comments
no comments
 
  Add your comment
 Email  
 Subject  
 Comment  
 Verification code:

 
    All comments are screened by the admin prior to being posted
     
 
  Contacts
  Report Abuse