33 lines
835 B
Batchfile
33 lines
835 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
REM Dossier où se trouve ce .bat (normalement ...\Ratio_Inventaires\Scripts\)
|
|
set SCRIPT_DIR=%~dp0
|
|
|
|
REM Racine du projet = dossier parent de Scripts
|
|
cd /d "%SCRIPT_DIR%\.."
|
|
|
|
echo Répertoire courant :
|
|
echo %CD%
|
|
echo.
|
|
|
|
echo --- Mise en prod Ratio_Restauration ---
|
|
|
|
REM 1) Mise à jour automatique de la version
|
|
python "%SCRIPT_DIR%maj_version.py" "Excel\prod\Ratio_Restauration_VERSION.txt"
|
|
|
|
REM 2) Vérifier que le fichier source existe (dev)
|
|
if not exist "Excel\dev\Ratio_Restauration_dev.xlsm" (
|
|
echo ERREUR : fichier source introuvable : Excel\dev\Ratio_Restauration_dev.xlsm
|
|
pause
|
|
endlocal
|
|
exit /b 1
|
|
)
|
|
|
|
REM 3) Copie du fichier Excel vers le dossier prod
|
|
copy /Y "Excel\dev\Ratio_Restauration_dev.xlsm" "Excel\prod\Ratio_Restauration.xlsm"
|
|
|
|
echo --- Mise en prod terminee ---
|
|
endlocal
|
|
exit /b 0
|