ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Synch Folders NOT files

<< < (2/2)

PlayPhil:
If you are constantly sync'g a folder, for instance My Documents, you can also setup a shortcut...


--- ---%windir%\system32\cmd.exe /K xcopy "C:\My Documents" "H:\My Documents" /E/T
where H is a valid path to another drive in this case, a USB stick for example. Note the quotes are necessary when there are spaces in the pathname. I use quotes all the time whether there's spaces or not.

Similarly, a shortcut to use Skrommel's EjectCD script...


--- ---%windir%\system32\cmd.exe /C pushd "C:\Skrommel\CdOpenClose" && EjectCD.exe G
where /C closes the cmd wndo after completion, and G is the CD/DVD drive. I use 'pushd' since the path to the directory is not defined, ie, not in the path variable on my system. Also in the shortcut definition, the cmd wndo is run minimized, I use the icon from EjectCD and the shortcut resides in the Quick Launch menu - very handy, quick too :)

Amazing how many are not familiar with xcopy, yet it's fast, very functional and totally reliable

patthecat:
The command line command called Robocopy.exe (found in Microsoft Windows Resource Kits) can be used to synchronize subdirectories with the /MIR  (mirror) switch.

The link below basically shows a screen which shows what I'm talking about above with the robocopy output displaying the run statistics:
http://www.simplefailover.com/kb.aspx?kbid=1013

If you do not want to deal with the command line, then a Microsoft Software Engineer has also created a  windows GUI for robocopy.  See link below:
http://www.microsoft.com/technet/technetmag/issues/2006/11/UtilitySpotlight/

When doing backups of a doctor's Electronic Medical Records data, I first copy the live production data onto a separate drive.  I then make archives/backups off of this copy.  I am currently using an xcopy script but will be migrating to another script using robocopy with the /MIR option since I think it's more robust than xcopy.  On subsequent runs, only files which were added, changed, deleted from both source and destination directories will be processed rather than every file being copied to the destination directory.


patrick

Navigation

[0] Message Index

[*] Previous page

Go to full version