Jump to content
Sign in to follow this  
binarydigit0101

FTP and local question.

Recommended Posts

binarydigit0101

hi all! I have to connect to an ftp folder for get list of file.

i try to connect with _ftp_connect and i connected. now I don't know how can I use _filelisttoarray for get this filelist.

:)

#Include <File.au3>
#Include <Array.au3>
#Include <FTPEx.au3>

$openstorage = _FTP_Open("storage")
$connessione = _FTP_Connect($openstorage, "ip", "username", "password")
$folder = _FileListToArray($connessione & "restofthepath") ; I tried.

; for trying.

MsgBox(0, "", UBound($folder))
_ArrayDisplay($folder)

I've tried in this way. Thank you! ;)


ehi ehi ehi, what is your name?

Share this post


Link to post
Share on other sites
sleepydvdr

Try this. It worked for me:

#Include <File.au3>
#Include <Array.au3>
#Include <FTPEx.au3>

$openstorage = _FTP_Open("storage")
$connessione = _FTP_Connect($openstorage, "ip", "username", "password")
$folder = _FTP_ListToArray ($connessione, 2)

MsgBox(0, "", UBound($folder))
_ArrayDisplay($folder)

#include <ByteMe.au3>

Share this post


Link to post
Share on other sites
binarydigit0101

thank you! I didn't know that command. and now, I would need to show a form where there are the file: isn't there a showdirectoryform? then I have to allow users to upload only file with specific extensions. thank you so much! :)


ehi ehi ehi, what is your name?

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  

×