Last active
December 11, 2020 07:35
-
-
Save cyberdev/0497a41a0bdb567fa7cb6ba4a205f0d2 to your computer and use it in GitHub Desktop.
Batch command copy file from Quasar Project into Codeigniter 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
SETLOCAL | |
SET "appdir=path\to\webroot" | |
SET "srcdir=.\dist\spa" | |
echo delete files from folders | |
echo ------------------------ | |
FOR /D %%a IN (%srcdir%\*) DO ( | |
echo .\assets\%%~nxa\* | |
RD /S /Q "%appdir%\assets\%%~nxa" | |
) | |
echo. | |
FOR /D %%a IN (%srcdir%\*) DO ( | |
echo %appdir%\assets\%%~nxa | |
echo ------------------------------------ | |
xcopy /S /I /Y "%%a\*" "%appdir%\assets\%%~nxa\" | |
echo. | |
) | |
echo copy single files | |
echo ------------------------------------ | |
echo %appdir%\favicon.ico | |
xcopy /Q /F /Y /I "%srcdir%\favicon.ico" "%appdir%\" > null | |
echo %appdir%\application\views\defaultview.php | |
xcopy /Q /F /Y /I "%srcdir%\index.html" "%appdir%\application\views\defaultview.php" > null | |
GOTO :EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment