Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners how to copy the directory in to ftp server using java
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


venaktehs
how to copy the directory in to ftp server using java
1 Answer(s)      4 years ago
Posted in : Java Beginners


how to copy the directory in to ftp server using java ?


Advertisement
View Answers

December 14, 2010 at 3:12 PM


Hello venaktehs

As much as I know,You can do this as follows:

First,Create a directory in the current working directory with the same name (which you wish to copy) as:

issueCommand("MKD"+directoryName);

Change the working directory :

// Here "ftp" is the Object of Ftp

ftp.setDir(directoryName);

Now,if need, You can change the local directory.For example :

ftp.setLocalDir(new File("C:/tmp");

Now you can upload file in your remote directory as follows :

ftp.upload(new File("c:/tmp/test.txt"));

I Hope this Info helps you.



Related Tutorials/Questions & Answers:
how to copy the directory in to ftp server using java
how to copy the directory in to ftp server using java  how to copy the directory in to ftp server using java ?   Hello venaktehs As much... working directory with the same name (which you wish to copy) as: issueCommand
FTP Server : Create Directory
In this section you will learn how to create directory on FTP server using java
Advertisements
FTP Server : Remove Directory
In this section you will learn how to delete directory on FTP server using java
Change parent directory on ftp server
In this section you will learn how to change the parent directory on FTP server using java
FTP Server : Change working directory
In this tutorial you will learn how to change working directory on FTP server using java
Search Directory on Ftp Server
This tutorial describes how to search a specific directory on the server by using java
How to implement FTP using java
How to implement FTP using java  Hi, I am a B.tech student and I want to implement FTP using Java to transfer files and exchange files between FTP client and FTP server. Could anyone help me for How to implement FTP using java
Checking Directory existence on Ftp Server
In this section, you will learn how to check existence of a directory on the server by using java
how to creat ftp server on java
how to creat ftp server on java  ftp server investigation requirment ER diagram flow chart source code
how to creat ftp server on java
how to creat ftp server on java  ftp server investigation requirment ER diagram flow chart source code
how to creat ftp server on java
how to creat ftp server on java  ftp server investigation requirment ER diagram flow chart source code
how to creat ftp server on java
how to creat ftp server on java  ftp server investigation requirment ER diagram flow chart source code
how to creat ftp server on java
how to creat ftp server on java  ftp server investigation requirment ER diagram flow chart source code
how to creat ftp server on java
how to creat ftp server on java  ftp server investigation requirment ER diagram flow chart source code
how to creat ftp server on java
how to creat ftp server on java  ftp server investigation requirment ER diagram flow chart source code
how to creat ftp server on java
how to creat ftp server on java  ftp server investigation requirment ER diagram flow chart source code
how to copy file from one directory to another in java with examples
how to copy file from one directory to another in java with examples  how to copy file from one directory to another in java with examples? I want... copy from one directory to another in java. Thanks
Copy Directory or File in Java
Copy Directory in Java      ... how to copy the directory and files into a new directory. In this program, you... using the list() method and copy one by one to the destination directory
Java Connect to and FTP Server
Java Connect to and FTP Server  What is the code for Java Connect to and FTP Server? How to establish a connection to FTP server in Java? Thansk... the apache commons library to connect/login to FTP server. Link of complete example
how to upload file using FTP in java
how to upload file using FTP in java  hai, i want to upload file using FTP in java Webservices.. Tel me some Articles Regards Asha
FTP file copy problem? - Java Beginners
FTP file copy problem?  Hi, Can any one tell me how to set file lastModifiedTime after copying files through FTP. I am using commons-net-1.4.1.jar to copy files from local system to server. Eg: local file name ?test.doc
FTP server
FTP server  How to store a series of files in a ftp server using java
How to upload file on FTP Server
How to upload file on FTP Server  In my application there is a requirement of uploading the file on FTP server. How to upload file on FTP Server... is good and can be used in Java applications. Read FTP File Upload in Java for more
File copy from one directory to another in java
File copy from one directory to another in java  I am trying to find... directory in Java. I have to write a program in my application for copying one file from a directory to another directory. How to achieve this? Is there any API
List all directories on FTP Server
In this section you will learn how to list all the directories on FTP server using java
FTP Server : List Files and Directories
In this tutorial we will discuss how to list files and directories on FTP server using java
Delete a file from FTP Server
In this section you will learn how to delete file from FTP server using java
FTP Server : Download file
This tutorial contains description of file downloading from the FTP server using java
FTP Server : Upload file
This tutorial contains description of file uploading to the FTP server using java
Get all file size on FTP Server
In this section we are going to describe how to get size of FTP server files using java
FTP Server: List all files name
This tutorial represents how to list the entire files name on FTP server using java
 

 

 

DMCA.com