I'm running the below mentioned batch file, it is copying the content without validating the access path i.e. if the accesspath for the "MSACCESS.EXE" is invalid, still it is executing the COPYCONTENT bookmark. I'm not sure IF EXIST line is correct. Please help me.
Rem Set the path for the Office 2010 Access DB
SET AccessPath= "C:\Program Files (X86)\Microsoft Office 2010\Office14\MSACCESS.EXE"
IF EXIST AccessPath GOTO COPYCONTENT
Rem copy the contents file
XCOPY "c:\test\test.txt" /y "C:\Program Files\Test\" /i