Skip to content

Instantly share code, notes, and snippets.

@shirosaki
Created January 19, 2012 00:36
Show Gist options
  • Select an option

  • Save shirosaki/1636772 to your computer and use it in GitHub Desktop.

Select an option

Save shirosaki/1636772 to your computer and use it in GitHub Desktop.
Copies all files and directory trees.
@echo OFF
if "%~1" == "" goto :EOS
if "%~2" == "" goto :EOS
xcopy %1 %2 /D /S /E /H /C /Y /R /Q
goto :eof
:EOS
echo Copies all files and directory trees.
echo usage: xcpa SOURCE DESTINATION
echo.
echo xcpa C:\ruby V:\ruby\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment