Hi guys, I am looking to create a Windows batch (.bat) file to backup my Website. I have searched a million sites on how to create this, and I am a little lost. Let me show you what I have so far (details removed, of course):

ftp ftp.myhost.com

#wait here 3 secs

myusername

#wait here 3 secs

mypassword

#wait here 3 secs

cd \(the directory i want to download from)

#wait here 6 secs

getdir thedirectory


I don't actually know how to make it wait, but I thought the command was 'wait' or 'pause'. The other problem is, I want to get a directory and all subdirectories, all files in those, and I want to overwrite what is on my local machine. I know that to download to a certain directory on my machine, I need to run the script from that directory, or add a line like (cd C:\thedirectory). Can someone please enlighten me?? Thanks in advance!!!