Security Basics mailing list archives

Re: Re: Help writing a back up script


From: anon () gmail com
Date: 26 Oct 2005 19:08:35 -0000

For simple batch file transfers, the tools are all there in XP, as Terence indicated. Use 'Notepad.exe' or "edit 
ftp.bat" from the DOS prompt to create the batch file:

ftp.exe -s:%0
goto done
open <yoursite.com> '(or <IP>)
<insert ftp username>
<insert password>
cd <insert directory>
pwd
ls -la
del <insert filename>
ascii (or bin)
hash
put <insert filename>
bye
:done

Change permissions on the file and/or directory if required. Modify the commands to include paths to other directories 
as needed.

You can then use the 'Scheduler' wizard under the Program Files->Accesories to setup the batch file to run as a 
specific user at times you specify. I use this method succesfully to run batch files, to remove dangerous shares on 
windows boxes for example.

Google "ftp batch files" for more detailed commands and examples!


Current thread: