Jump to content

Read files and directories without download them.......


Recommended Posts

Hi all and sorry for english?

I have a server accessible via FTP. I would to list all files and directories on the server in a folder on my computer, but without download them.

Is this possible?

Thanks and bye

Link to comment
Share on other sites

Hi all and sorry for english?

I have a server accessible via FTP. I would to list all files and directories on the server in a folder on my computer, but without download them.

Is this possible?

Thanks and bye

http://www.autoitscript.com/forum/index.php?s=&showtopic=78378&view=findpost&p=566098
Link to comment
Share on other sites

Thankis for the replies, but maybe I don't make myself clear or you don't understand the question.

I want to read all files and dirs from my server and "recreate" them in a specified folder on my computer.

I don't want to download any files or dirs.

Do you know FileZilla program?

When you login into you server, you can see all files and dirs without download them. I want to do the same thing with AutoIt.

I hope I make myself clear now!

Thanks for help! :D

Edited by FSoft
Link to comment
Share on other sites

Thankis for the replies, but maybe I don't make myself clear or you don't understand the question.

I want to read all files and dirs from my server and "recreate" them in a specified folder on my computer.

I don't want to download any files or dirs.

Do you know FileZilla program?

When you login into you server, you can see all files and dirs without download them. I want to do the same thing with AutoIt.

I hope I make myself clear now!

Thanks for help! :D

See following code.

#Include <FTP.au3>

const $Host = 'asplinux.fiord.ru'
const $Login = ''
const $Password = ''

local $hFtp, $hSession, $hFind, $tFind

_FTP_Startup()

$hFtp = _FTP_Open('MyFtp')
$hSession = _FTP_Connect($hFtp, $Host, $Login, $Password)
_FTP_SetCurrentDir($hSession, 'pub/i386/11.2')

$tFind = DllStructCreate($tagWIN32_FIND_DATA)
$hFind = _FTP_FileFindFirst($hSession, '', $tFind)
while not @error
    ConsoleWrite(DllStructGetData($tFind, 'FileName') & @CR)
    _FTP_FileFindNext($hFind, $tFind)
wend
_FTP_FileFindClose($hFind)
        
_FTP_Disconnect($hSession)
_FTP_Close($hFtp)

_FTP_Shutdown()

FTP.au3

Do you really think that all of these files have been downloaded to your computer for?

:o

Link to comment
Share on other sites

Yes, but with script all file are listed in the console.

Instead of this, I want to list them in an Explorer folder. (This is the problem)

This and much more can be done in AutoIt, but not in one or two lines. Look at the forum and find exactly.

Good luck.

:D

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...