Download directory listing using Command Line parameters

Core FTP client questions and answers
Post Reply
Jasper Kamp
Posts: 1
Joined: Fri Nov 18, 2005 9:00 am

Download directory listing using Command Line parameters

Post by Jasper Kamp »

Hello,

I would like to retrieve a directory listing from an external FTP site and download it locally into a file. All using command line parameters.

Is this even possible using CoreFTP?
The only command line options I seem to have are (a) downloading an existing file, or (b) uploading a new file.

Thanks in advance,

Jasper Kamp
davewhiteside
Posts: 4
Joined: Mon Nov 21, 2005 7:17 pm

Directory Listing

Post by davewhiteside »

I also have the same requirement. Did anyone get back to you?
davewhiteside
Posts: 4
Joined: Mon Nov 21, 2005 7:17 pm

Dir listing

Post by davewhiteside »

Thanks for adding this feature. When I ran it though it produced this output with hex '00' characters between each character, can you remove these extra chars.
Thanks,
Dave

- r w - r w - r w - 1 u s e r g r o u p 4 3 D e c 1 9 1 0 : 3 2 V A . g i f
wal
Posts: 11
Joined: Thu Feb 16, 2006 1:42 am

Post by wal »

Hi,

is the -DIRA is implemented? I have installed LE 1.3c 1447 on windows XP SP2 and I have the problem of x'00' between each characters in the result file.

I have also ERRORLEVEL=1, but the dir.out is build (with x'00' between each characters). May be, my site configuration is not right?

Can you help me?

Sorry for my english.
wal
Posts: 11
Joined: Thu Feb 16, 2006 1:42 am

Post by wal »

"C:\Program Files\CoreFTP\coreftp.exe" -site liresave -dira /lireacapello/save/ -s

Because I am not sure, I try with -dira or -DIRA for a same result.

In result:
- ERRORLEVEL=1
- dir.out is build with x'00'

Thanks.
wal
Posts: 11
Joined: Thu Feb 16, 2006 1:42 am

Post by wal »

I put -s in the beginning and it is the same result.
wal
Posts: 11
Joined: Thu Feb 16, 2006 1:42 am

Post by wal »

I try from three ways:

1) Start/execute et type the command directly and execute a .bat file which contains the command

2) Open a windows to type and see the command (in french "Invite de commandes") try with command directly and .bat file

3) Double-click on a .bat file

In 3 tests is the same thing. I try on my 2 PCs, (xpSP1 and XP SP2) : same thing.

Certainly is an effect of my environnement, but I can't find why.
wal
Posts: 11
Joined: Thu Feb 16, 2006 1:42 am

Post by wal »

Hello CP,

is it possible for a test that you reinstall Core FTP Lite (free version) ?
- desinstall
- download Core FTP Lite (free version) from the site
- reinstall
By this manip you and me are sure to test with the same version and the version in public diffusion.

May be is not necessery, but i have not an other idea...

Thanks, for your help.
wal
Posts: 11
Joined: Thu Feb 16, 2006 1:42 am

Post by wal »

You are the Best, CP !!!

The -dira list is right now. Two questions :
- I have already errorlevel=1 why ?
- what are the differences between Core FTP ANSI and the others ?

Thanks.
wal
Posts: 11
Joined: Thu Feb 16, 2006 1:42 am

Post by wal »

Sorry is not :

- I have already errorlevel=1 why ?

but

- I have still (or always?) errorlevel=1 why ?
wal
Posts: 11
Joined: Thu Feb 16, 2006 1:42 am

Post by wal »

Hello,

to achieve the subject -dira can you said me is ERRORLEVEL=1 is the right return code when I retrieve the directory listing from a remote site?

I ask this because when I test with an existant or not existant directory, I obtain the same ERRORLEVEL 1 and I can't test in a script if it is right or not.

I don't see how can I test in a script a bad/good result.

Thanks in advance
wal
Posts: 11
Joined: Thu Feb 16, 2006 1:42 am

Post by wal »

OK CP,

I will try that you said. When this problem will be resolved thank you to post a little message in this thread.

Thanks.
wal
Posts: 11
Joined: Thu Feb 16, 2006 1:42 am

Post by wal »

Hello CP,

I tried to use -DEL to delete a remote file by command line. The file is deleted but the ERRORLEVEL is set to 1. I think is the same problem.
wal
Posts: 11
Joined: Thu Feb 16, 2006 1:42 am

Post by wal »

Hello CP,

I have another problem, I hope that is the last :))

When I use -log parameter I obtain two logs :
- COREFTP.LOG
- the log defined by -log filename

I think, when I use -log, that COREFTP.LOG is not neccessary and really not good. Why? Because with the time and the repetition of the scripts, the file COREFTP.LOG will become too big and may generate an incident. With -log I manage and I can delete when I want. I think too that -nolog wil be very good in this case :)

What do you think so about this?
Post Reply