How do I write an automated script and use it with ftp.exe provided with Windows to, say log in and download/upload a file automatically without user intervention?