Running Microsoft SyncToy 2.0 in a script - TechRepublic
Question
November 13, 2008 at 10:55 AM
bds19591

Running Microsoft SyncToy 2.0 in a script

by bds19591 . Updated 17 years, 7 months ago

I am trying to come up with a script to run Microsoft SyncToy 2.0 that I can use at both logon and logoff. The backup is for a couple of Senior Managers who have laptops; backing data up to an external [USB] drive. I have spent hours doing various tests with bits and pieces of scripts I’ve found browsing the Internet, but I just can’t seem to find the right combination to make things do what I want. Unfortunately I have virtually no experience in scripting, so that’s obviously not helping me. Ultimately I’d like to have a script that verifies the “left” and “right” drives for the backup, (the “left,” or “from,” is actually a TrueCrypt file on the hard drive; if the file isn’t mounted, obviously the backup wouldn’t work, and I’d like to have a message to that affect,) but to start, I’d settle for just a simple script that works and the extra logic can be added later! One of the things that I’m running into is that it doesn’t appear that the “-R” switch is working on the SyncToyCmd.exe – this seems like something that shouldn’t be so difficult! Any help would be greatly appreciated! Thanks!

This discussion is locked

All Comments