FTPGetFile too slow?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1354
Joined: Sun Nov 03, 2002 3:19 am
Contact:

FTPGetFile too slow?

Post by Dorian (MJT support) » Fri Feb 14, 2003 5:30 pm

Hi people,

I've noticed when I used FTPGetFile to download a file it is a lot slower than if I simply click a hyperlink for the same file.

Is there a reason for this, and is there a way to speed it up a little?

I use it to download about 200MB worth of logfiles every morning, and it seems to take ages.

Lumumba

Post by Lumumba » Fri Feb 14, 2003 6:01 pm

Compare it with the ftp used from within a DOSBox (create a ftpscript!).
So you should get an idea if it's a real MSched issue.

Run Program>cmd /c ftp -s:ftpscript


ftpscript:

open ftpserver
username
password
cd remotedirectory
type ascii
get remotefile
bye


User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Fri Feb 14, 2003 6:19 pm

Hi,

If you don't want to use Macro Scheduler's FTPGetFile command you can either use the command line FTP command, or use IE:

IEXPLORE.EXE ftp://username:[email protected]/ ... /file.file

You could use VBScript and IE's ActiveX for more control:
http://www.mjtnet.com/scripts.hts?display+77

Specify the FTP URL as described above.
MJT Net Support
[email protected]

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1354
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Post by Dorian (MJT support) » Sat Feb 15, 2003 3:23 am

Hi Guys, thanks for your suggestions.

I tried the various suggestions and they all seem to download a 2.8MB log file in about 60-65 seconds, with the exception of the dos box which took 96 seconds.

So maybe MS isn't slow after all, as it seems to be faster or equal to all the other methods that have been suggested.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Sat Feb 15, 2003 5:24 am

Hi Horoscopes2000,

If you wish to achieve the fastest download time, try GetRight (http://www.getright.com).

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts