Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to save my programs in laptop's drive to desktop using shared network

 
kavitha yogaraj
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I do all my java assignments on laptop many of the time and some time I do work on desktop. As my eclipse Ide is stored in local disk c. I don't want to use any hard drive to pick my programs here to there. Instead, I want to program this to happen. So now I want to save my source file(where all my java programs is stored) of laptop to source file of my desktop PC

So to do this. Should I do this -> Write a program to create destination directory in my desktop to copy source directory files of laptop.
Is this enough?
 
Rob Spoor
Sheriff
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not use an existing solution? Microsoft's SyncToy can do what you want, at least manually. There are others that can do it automatically; once a file is added, removed or changed the changes are propagated to other folders of your choice.
 
kavitha yogaraj
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, I want to do using java. As I'm learning java for scjp6 I'd like to do some excersies like this. Yes as you said the changes should propagate to other destination folders .
 
Steve Fahlbusch
Bartender
Posts: 605
7
Mac OS X Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
since this is a learning opportunity - as long as you keep both of your computers backedup - go for it.

and from now on if you need a file, go to your target directory first, if it is not there go to the source and if all else fails you have the backup.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic