|
| 1 | +@ECHO OFF |
| 2 | + |
| 3 | +REM |
| 4 | +REM |-------------------------------------------------------------------------------------------------------------------- |
| 5 | +REM | Purpose: Generic Install |
| 6 | +REM | |
| 7 | +REM | Ver. Date Author Details |
| 8 | +REM | 1.00 27-NOV-2017 Anthony Duguid Initial version. |
| 9 | +REM |--------------------------------------------------------------------------------------------------------------------*/ |
| 10 | + |
| 11 | + |
| 12 | +REM |
| 13 | +REM /E = Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T. |
| 14 | +REM /D:m-d-y = Copies files changed on or after the specified date. |
| 15 | +REM If no date is given, copies only those files whose source time is newer than the destination time. |
| 16 | +REM /K = Copies attributes. Normal Xcopy will reset read-only attributes. |
| 17 | +REM /Q = Does not display file names while copying. |
| 18 | +REM /R = Overwrites read-only files. |
| 19 | +REM /Y = Suppresses prompting to confirm you want to overwrite an existing destination file. |
| 20 | +REM |
| 21 | + |
| 22 | +REM Copy the install directory and sub-directories |
| 23 | +REM XCOPY ".\SourceControl.xlam" "%AppData%\Microsoft\AddIns\SourceControl.xlam" /E /K /Q /R /Y /D |
| 24 | + XCOPY ".\SourceControl.xlam" "%AppData%\Microsoft\Excel\XLSTART\SourceControl.xlam" /E /K /Q /R /Y /D |
| 25 | +REM XCOPY ".\SourceControl.xlam" "%AppData%\Roaming\Microsoft\Excel\XLSTART\SourceControl.xlam" /E /K /Q /R /Y /D |
0 commit comments