QFTP

Post Reply
User avatar
Paco Garcia
Posts: 172
Joined: Fri Oct 07, 2005 12:00 pm
Contact:

QFTP

Post by Paco Garcia »

Hola,

¿Alguien ha manejado la clase TQFtp?

Intento hacer un PWD y me da mucha información. Quisiera obtener solo la información de los ficheros o directorios que contiene y no tener que paserarlo.

Gracias
User avatar
Vikthor
Posts: 271
Joined: Fri Oct 07, 2005 5:20 am
Location: México

Re: QFTP

Post by Vikthor »

Paco :

Esto te debe de ayudar.

COMMANDS YOU WILL NEED
lcd dname = local directory change (changes directory at the local site
to dname)

lcd .. = change to the previous local site directory

cd .. = change to the previous foreign sire directory (ie go back one directory)

lcd = takes you to the home directory at the local site

lcd dname = local directory change (changes directories at the
foreign site to dname)

cd dname = foreign directory change (changes directories at the foreign
site to dname)

The following 3 commands: ls, ls -F, and dir have the following
properties:
If your prompt is 'ftp>' then you get the list of files at the
foreign site'. If your prompt is 'LOCAL>' then you get the list of
files at the local site.

ls = listing of contents in the current directory

ls -F = listing of contents in the current directory indicating which
are directories with a /

dir = a listing of contents that also SHOWS THE SIZE of each entry.
Directories are denoted by a d on the far left.
Useful command if your local site has limited space.

get = command used to transfer files from the foreign site to the
local site

mget * = command used to transfer multiple files of the form "fname"
from the current foreign directory to the current local directory

mget *.* = command used to transfer multiple files of the form
"fname.something" from the current foreign directory to
the current local directory. This will NOT copy
directory structures, ONLY THE FILES. You must first
create the directories in your account (the local
site) BEFORE you ftp.

prompt = during mget commands your machine may or may not ask you
whether you want each file. This command toggles this
feature on and off for your convenience. I'll explain
more when we get to mget in our example.

get fname |more = allows you to read the file before deciding to get
it. You can page down by hitting the space bar. You
cannot page up!

mkdir dname = make a directory at the local site called dname. You
must use this command only at a LOCAL> prompt since you are not
authorized to alter the archive site.

pwd = ask the computer to tell you what directory you are in at the
foreign site when prompt is "ftp>" and at the local site when the
prompt is "LOCAL>"

quit = used at the ftp> prompt to end the session and return you to
your local site

[ctrl] xc = allows you to stop the reading process of a "get fname
|more" or to stop a "mget *" or "mget *.*" command. The
[ctrl] key must be held down while x and c are
typed!!! You do NOT need a prompt to use this command!!
Vikthor
Post Reply