473,398 Members | 2,404 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,398 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 4882
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.