Does it have to use the XMLHTTP object? I have written a script that will do what you want, but it just uses the standard ftp client built into the OS.