Jump to content
Sign in to follow this  
Floppy

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

Recommended Posts

Floppy

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

Share this post


Link to post
Share on other sites
hitrom

You can use internet control to read the name of files and you can create a webpage for every file whith a hiperlink to file

Share this post


Link to post
Share on other sites
Yashied

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

Share this post


Link to post
Share on other sites
Floppy

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

Share this post


Link to post
Share on other sites
Yashied

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

Share this post


Link to post
Share on other sites
Floppy

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)

Share this post


Link to post
Share on other sites
Yashied

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.