Jump to content

FTP and local question.


Recommended Posts

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?

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...