ftp whole directory

HI Guys,

I have downloaded the oracle binaries from oracle.com, i have unziped them in a directory say OWB. I have to copy them to my windows server so i have ran the ftp command.

It looks like i can ftp whole directory.

Can you please get me the command to get all the files and subdirectory the main directory.

OWB11gr2.zip -in unix
OWB -- all the unzip files from OWB11gr2.
in window - i want like this
ftp >get OWB c:\BOadmin

did you try

 mget * 

?

Yes , i tried but is say no such file exit c:\OWB

---------- Post updated at 07:14 AM ---------- Previous update was at 07:04 AM ----------

mget dot work as there are many subdirectories exit in the directory, when trying to execute it say not a plain file

I think, you trying to put your files from your local machine to windows server.

In that case -
try to connect to windows server using ftp from the local directory where you have the files.

change the remote directory where you want to put files.

then try

 mput  

make sure that directory has write permission.

Wouldn't it be easier to ftp the zip file to the Windows box and they unizip there? Or just download the zip file again directly to the Window box and thereby make 100% sure that you get a Windows version.

There is no ftp command which will copy an entire directory tree.

Hi,

I have downloaded the windown installer on windows only, this will be installed on different windows server so what i did is to copied the installer to unix and connected on windows server and ran the ftp to get the installer from unix. i have copied successfuly the zip file but i am unable to unzip them in windows server it say the archive is currupt. so i dicided to unzip in unix and run mget to collect all the files.

Any help will save my hell lot of time.

Thanks

Rajesh

It is probably corrupted indeed. Check with md5 (generally provided on same page from where you downloaded the file) or similar utilities.

Make sure the original zip file is not corrupted. Then..
put file.zip in BINARY mode on unix and get file.zip in the same mode on windows.

If you do want to ftp the unzipped directory on windows, you have to create a tar archive (and probably a gzip to compress) and untar/gunzip it on windows with the utilities like winrar.

How did you copy the zip file from Windows to unix (please be precise).
You must run the ftp transfer in BINARY mode at every stage or the file will be corrupted.

Surely there are easier ways of copying files from Windows Server to Windows Server? Map a drive?