What I am trying to do is check if a folder Test exists on a desktop and if it does not, then I want to copy that folder from the server. And if it already exists, then I want to just copy the files from folder Test on the server into the existing folder on the desktop. And if existing folder contains any files I don't want the purged. Below is the if else statement I use and it works great if folder does not exist but does nothing if folder already exists on the desktop. What am I doing wrong?
P.S. I want to use robocopy for copying the folder ot the files
if not exist "C:\Documents and Settings\All Users\Desktop\Test"
robocopy "\\Server03\data\Test" "C:\Documents and Settings\All Users\Desktop\Test" /E
robocopy "\\Server03\data\Test" "C:\Documents and Settings\All Users\Desktop\Test" /COPY:DAT