Sign in to follow this  
Followers 0
burger

FTPGetFile help

6 posts in this topic

I attempting to download this CSV file without opening Excel.

http://www.mlindex.ml.com/GISPublic/bin/GI...dex%20Daily.csv

This is my code and though it appears to run OK, I'm not getting the download. Can it be done or am I attempting the impossible? Thanks for any help.

#include <FTP.au3>

$server = 'mlindex.ml.com/GISPublic/bin/'
;$file = 

$Open = _FTPOpen('MyFTP Control')
$Conn = _FTPConnect($Open, $server,"","",1)
$Goget = _FTPGetFile($Open,'GISFTP.asp?fn=US%20Index%20Daily.csv','c:\index.csv',2,-1,0,0)
$Ftpc = _FTPClose($Open)

Share this post


Link to post
Share on other sites



Try looking at INetGet

Share this post


Link to post
Share on other sites

Try looking at INetGet

Perfect! Thank you codemyster. (I used to be burgermeister but I changed my name to protect the innocent.)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hi Guys

I am new to To Autoit and new to the forum.....

I want to be able to upload a file to my FTP site using autoit. I can pull in the filename to upload using iniread and indeed can copy to remote share using FileCopy but I want to upload it to to an FTP share.

Basically I guess I need the reverse of INetGet - Maybe and INetSend!!

Any thoughts

Thanks

Edited by MrA

Share this post


Link to post
Share on other sites

Hi Guys

I am new to To Autoit and new to the forum.....

I want to be able to upload a file to my FTP site using autoit. I can pull in the filename to upload using iniread and indeed can copy to remote share using FileCopy but I want to upload it to to an FTP share.

Basically I guess I need the reverse of INetGet - Maybe and INetSend!!

Any thoughts

Thanks

take a look at http://www.autoitscript.com/forum/index.php?showtopic=12473.

_FTPPutFile should be useful for what you are trying to accomplish.


HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites

Hi

Thanks for that, I'll have a look at it and see if I can get it working.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0