this way should work if ur working on ur own server instead of a sub-hosted
server.
Create:
Batch file to initiate ftp
ftpScript file with all ftp commands(login and put etc)
put them in the same directory
int the bat file:
=================
cd [path_to_bat_file]
ftp -s:ftpScript.ftp ftp.server.com
=================
in the ftpScript.ftp file:(everything on new lines)
=================
USERNAME
PASSWORD
cd REMOTEDIR
lcd PATH_TO_TEXTFILE
PUT txtFile.txt
on error quit
quit
=================
now on ur ASP page just:
set objShell = Server.CreateObject("WScript.Shell")
objShell.run PATH_TO_BAT_FILE, 0, True
set objShell = nothing
0 = don popup on console
True = wait till done
you can set this to false if you wanna
and ur done
lemme know if it works, sh!t i use it all the time to replicate files
between my servers overnite.
"Darcy" <1D*********@1S1i1t1e1w1a1r1e1.1c1o1m1> wrote in message
news:Yy******************@news04.bloor.is.net.cabl e.rogers.com...
I would like for an ASP page to transfer a text file (from the same
directory the ASP file is in) to another Web server.
I don't mind if the code is in ASP or VB.
Any ideas?
I suspect that there is a way of having an ASP page conduct an FTP session
to transfer the file.
I would like to do this without a component as I'm looking for source
code.
Thanks in advance....
Darcy