473,386 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to copy or move file from windows to linux directory using java program

Hi,
I want to create a java program which will copy or move files from windows machine to linux machine directory.
I tried by socket connection. Connection is successful but I want to paste windows file to linux particular directory.

If possible, plase provide sample code.

Thanks & Regards,
Mukesh Ojha
Mar 14 '10 #1
1 4881
jkmyoung
2,057 Expert 2GB
Could you post the code that you're using for your socket connection? Is file transfer enabled in this connection, and this type of connection?
Mar 15 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: ybarwani | last post by:
i need help to solve this program buy using Java programe javaScript and to know the cods Make the output showing the randomly circle with diffrent colors ybarwani@gmail.com
6
by: bill | last post by:
I have been presented with the task of getting the last file from a linux directory when the files are of the form: nnnnnn-xxxxxxx-.ext where nnnnnn are 6 numeric digits and xxxxxx is variable...
3
by: Begreen | last post by:
Hi All, I wrote a java program which outputs a xml file! But I would prefer this program to insert the DTD code on the fly, in the xml file when created! I want the xml file to look like...
3
by: kirankr1234 | last post by:
@files = `ls /home/perl/`; foreach $file (@files) { print "$file"; $file_size = `du -h /home/perl/working/kiran/$file`; if ( $file_size == 0 ) { print "$file"; ...
5
by: Sekkappan | last post by:
hi, I am new to javamail.now i urgently want a code to send a mail through java program.i am using struts application. can any one explain me clearly about procedure to send to using java...
2
by: Giridhar Sanapala | last post by:
Can any one tel me the procedure to mail using java program............
7
by: Arthur | last post by:
hi, this might be a simple one to them who know: i'm developing an asp.net project and use the debug mode. i have a xml file which contains data, that shall be read, if a specific page is...
2
by: navajyothi | last post by:
Does anyone know if there is a way to check the access permissions of different users using Java? I need to know if a user has full control or if they have read only access or none to a certain...
5
myusernotyours
by: myusernotyours | last post by:
Hi, Am trying to see if I can play a flash movie (a .swf ) file in a JFrame using the Java Media Framework. Google does't give any examples and I have been going through the documentation with...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.