Sync USB pen drive to local folder when plugged in?

Soldato
Joined
6 Jan 2006
Posts
3,423
Location
Newcastle upon Tyne
As title, is it possible? Going to be doing some work on a laptop while staying away on business and then on a desktop when back home.

It will be really important stuff and while I can work on the USB stick copy I want to make sure that its backed up everytime I plug it into the laptop or the desktop.

Thanks for any advice

Mark
 
How do you set up the drive letters?

Ive gone into admin tools, computer management and then disk management but when I put the USB drive in it doesnt show on the list with the HDD's?

Thanks
 
Where can I download robocopy from? Wiki comes up top on google and not sure about the rest of the results?
 
Ok had a go at this and it sort of works!!

When I run the bat file (no autorun yet) the files end up "backing up" to the USB stick

Here is the code I used, I think the issue is with the username. How do I check to see if I have the correct one? I went to c:/documentsand settings and typed out the exact name that is there

Code:
robocopy /e u:\files %m.surname.domain%\desktop\docs
 
Last edited:
Ok now its not working at all, dos prompt just flashes up and dissapears too quickly to read it

Edit - new code to check

Code:
robocopy /e u:\Files %userprofile%\desktop\docs
 
Ok, I changed the script from userprofile to username just to check and it puts a new folder on the usb drive with the username and the files inside of it.

It hasnt got anything to do with it being on a network and the user profile on the network drive?
 
Ok, added the pause command and had to take a screen shot of it

robocopyscreen.jpg
 
That would be fantastic!

Is there any documentation on robocopy that I can have a look at (I mean read and then not understand and come and ask you anyway:p)
 
Ok next problem....autorun

I copied the file from a cd as suggested and edited it to

Code:
[autorun]
OPEN=Backup.bat

But when I plug the usb stick in it just brings up a diologue box asking me to a)open folder to view files or b) take no action

Any ideas?
 
Yes sir! The autorun.ini file, backup.bat and a folder called "files"

Edit - its actually Backup.bat. Wasnt sure it the capital letter mattered but they are exactly the same.
 
Back
Top Bottom