>>Hi Sergey,
>>That downloaded the file, but I'm trying to download an exe file, and when I try to run the downloaded file I get an error "not a valid win32 application".
>>Any other ideas?
>
>Bill,
>
>I would use a hex editor to see wht's the difference between original file and the one you downloaded. Maybe it would give you some clues what's wrong. You can also try David Frankenbach's code from
http://www.geocities.com/df_foxpro/qgen008.htm. I use it to download files (not EXE's).
Frankenbach's code seems to work fine.
I have the same problem when I forget to upload my exe files in binary mode, because my default ftp is ascii. So when people download the exe files, they get a flash of a DOS window saying the exe can't be run in DOS mode.
So I'm guessing that the first method you gave me just downloads in ascii mode.
Thanks for the link.
Bill Morris