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?
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.