Skip to content

Instantly share code, notes, and snippets.

@alohasoftworks
Created September 21, 2009 20:09
Show Gist options
  • Select an option

  • Save alohasoftworks/190517 to your computer and use it in GitHub Desktop.

Select an option

Save alohasoftworks/190517 to your computer and use it in GitHub Desktop.
REM Copies files and folders from deploy directory to web server.
REM NOTE: If there are changes to Web.config, they will need to
REM be manually deployed.
SETLOCAL
SET _fromDir="C:\Users\jwest\Desktop\Deploy"
SET _toDir="\\networkserver\share1"
SET _toDir2="\\networkserver\share2"
robocopy %_fromDir% %_toDir% *.* /E /XO /XF "Web.config" "*.tmp" /NDL
robocopy %_toDir% %_toDir2% *.* /E /XO /NDL /XF "*.tmp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment