Avatar of daskas27
Flag for United States of America

asked on 

Backup a Local Directory to the Network Using a BAT File

      I am trying, (like heck), to create a bat file to backup some files. The files are located at C:\Users\Public\Public Documents\zeiss\calypso\workarea\inspections. The “inspections” directory has many floders and subfolders and I want them all to backup to the specified directory when I run this bat file. I have tried everything I could think of but I either get an invalid path error, or a cannot find file error, etc. What do I need to do to get this?
Here is my current bat file syntax:
xcopy "C:\Users\Public\Public Documents\zeiss\calypso\workarea\inspections" /s /c /d /e /h /i /r /y \\dc1\data\BEPAC_CMM\Zeiss_1\  

Thank you
Microsoft DOSWindows Batch

Avatar of undefined
Last Comment

8/22/2022 - Mon