ftp command

Dennis Malen dmalen at malen.com
Sun Sep 13 19:32:54 PDT 2009


Before I create a filePro program that can FTP to a winders server and am 
trying to confirm how I change the remote windows directory to "Documents 
and Settings".

I have combined the information Ken Brody provided and googled this issue.

What I have found is that the "lcd" command is for the local box (AIX UNIX 
in my case). CD is used to change the remote directory. That being the case 
I have tried many variations. From my google reseaerch it appears that the 
following should work:

cd "c:\Documents and Settings"

In every variation I used I get an error telling me the directory can not be 
found.

To reconfirm: I am experimenting from the command line in AIX UNIX before I 
create filePro code.

I am doing the following successfuly:

ftp IPAddress
login name
password
ascii

Here's the problem:
cd "c:\Documents and Settings" (or some variation thereof)

I get an error that the directory cannot be found.

Does anyone have any ideas?

Dennis Malen
516.479.5912

----- Original Message ----- 
From: "Kenneth Brody" <kenbrody at spamcop.net>
To: "ROBERT PULLIAM" <pulliamr at earthlink.net>
Cc: "filepro" <filepro-list at lists.celestial.com>
Sent: Friday, September 11, 2009 12:02 PM
Subject: Re: ftp command


> ROBERT PULLIAM wrote:
>> I need to ftp a file from a unix box to a windows box - can anyone help 
>> me with the syntax?
>
> c:\> ftp hostname
>
> ftp> cd /path/to/file
> ftp> lcd \path\to\save\file
>
> ftp> binary   <== If file is binary
> or
> ftp> ascii    <== If file is text
>
> ftp> get filename
> ftp> quit
>
>
> -- 
> Kenneth Brody
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list 



More information about the Filepro-list mailing list