There we go ...
 
first on is a batch file exapmle a.bat
 
 
this is my file i use to transfer my w2000 stuff to my backup ftp linux, where it is easier to move, save and handle files in a save stack!
 
@echo off
echo Transfering everything to ftp Backup Store
d:
cd \save
ftp -n -s:c:\00\save\ftpt.scr > c:\00\log\ftpt.txt
echo.
 
and second is the file ftpt.scr that is triggered and used

---
open 123.123.123.123
user userIDXXX userPWDXXX
binary
put backfile.rar
ls
bye
 
 
yup and thats it i hope it helps, otherwhise take 40 $ and get you a copy of linux :-)

marco

----- Original Message -----
Sent: Monday, May 28, 2001 8:05 PM
Subject: Re: [WS_FTP Forum] Passing a value to an scp script

Marco,
 
Thanks fo rthe response.  I tried setting the -s option with a file name but what goes on the PUT line in the script?
 
Thanks,
 
Brendan Whelan
----- Original Message -----
Sent: Monday, May 28, 2001 10:51 AM
Subject: Re: [WS_FTP Forum] Passing a value to an scp script

try ftp --help
 
and look for the -s option!
 
 
----- Original Message -----
Sent: Sunday, May 27, 2001 6:31 PM
Subject: [WS_FTP Forum] Passing a value to an scp script

Hello,
 
I am new to WS_FTP and am trying to do something that is probably quite simple.
My existing script enables me to upload a pre-named file to a server using FTP. However, I want to pass a file name (say xxx), in a DOS command, to an scp script that contains a PUT.
I want the xxx to be PUT to the FTP server. 
How can I achieve this?
 
Thanks in advance.
 
Brendan Whelan 

Reply via email to