ftp a file from remote pc of win 2000

Hello.
I am programming in C on HP-UNIX system,i want ftp a file from remote pc which is window 2000 system,i donot how config my HP-UNIX and pc, i donot how program in C or in shell.

Thank you for help.

Hi bdyjm

OK, this is what I asume your trying to do:

You want to ftp to a computer running Windows 2000?

Well, what the OS that the remote host is runing isn't that important, but I guess you just wanted to give as much information about your situation as possible. Anyway...

To ftp to a remote system in unix you'd use the program "ftp".

Type "ftp" at the prompt. You'll then get a prompt looking like this:

ftp>

Then type "o" now your given a new prompt that should look something like:

(to)

here you'll enter the IP or host of the computer that you want to reach (that is running an ftpd (ftp server)). After that your promtped for the login name and password. If the server is an anonymous one the simply type "anonymous" as the login name. After that use your email address as the password.

Here is an example:

[odinwolph@fox odinwolph]$ ftp
ftp> o
(to) ftp.freebsd.org
Connected to ftp.freebsd.org (62.243.72.50).
220 ftp.beastie.tdk.net FTP server (Version 6.00LS) ready.
Name (ftp.freebsd.org:odinwolph): anonymous
331 Guest login ok, send your email address as password.
Password:
230- The FreeBSD mirror at Tele Danmark Internet.
230-
230- Contact: beastie@tdk.net
230-
230- Use wisely.
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

After that, you should be logged in. To get a file use "get file-name". If the file has spaces in it you would use "get some\ file\ name". If you will need more commands then these, then I sugest you use "help".

I hope this helps.

OdinWolph

thank you of your help

my application system is :

windows 2000  pc   ---   HP unix minicom  ----   windows NT

I am programming with C language on HP unix minicom , I want to get files with ftp command from windows 2000 pc to HP unix minicom in my program, and also put files with ftp command from HP unix minicom to windows NT in my program.
not into command prompt .

hope for your help

I think you should write a small script which can connect to a remote machine and do all the file transfers that u wanna do.
Change it mode to make it executable ( i prefer chmod 755 filename)

Then in your C program, add the header file Stdlib.h and execute the script file from your C code using the function:
system(script_filename);

This approach will also give you the flexibility to even change the files u wanna transfer by just changing filename in your scriptfile without having to make any changes to your C code.

Good luck then......