Run BAT file at shutdown to synch directories across drives

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xanadu3141
    Visitor
    • Oct 2014
    • 9

    Run BAT file at shutdown to synch directories across drives

    I have created a txt file called SYNC.TXT that looks like:
    load C:\Users\XXX\AppData\Roaming\Mozilla D:\UTILITIES\WINDOWSMGMT\BKUP\Mozilla
    sync create-empty mirror:left->right

    I have created a BAT called SYNC.BAT that looks like:

    "C:\Program Files\Beyond Compare 4\BCompare.exe" @D:\UTILITIES\WINDOWSMGMT\SOFTWARE\BATCH\SYNCH.TXT

    I cannot get the BAT file to work when I run it as an Administrator.

    However, if I open an Administrator command prompt and run "C:\Program Files\Beyond Compare 4\BCompare.exe" @D:\UTILITIES\WINDOWSMGMT\SOFTWARE\BATCH\SYNCH.TXT
    I have no problems.

    What I want to do is assign the BAT file using the Group Policy Editor to Computer Configuration ==> Windows Settings ==> Scripts ==> Shutdown so that it will run and sync the Mozilla directory on the ā€œCā€ drive with a folder on the ā€œDā€ drive when I shut down my computer.

    What am I doing wrong?
    Thanks.
  • Xanadu3141
    Visitor
    • Oct 2014
    • 9

    #2
    OK - found it. MY fault - I had an embedded blank in a directory name to make it sort to the top of a list.

    Comment

    Working...