Création des édits

This commit is contained in:
2025-12-03 10:39:28 +01:00
parent 05db391f1b
commit 1cb7e7dd66
16 changed files with 24 additions and 9 deletions

View File

@@ -24,6 +24,13 @@ REM === 2) CHEMINS DES FICHIERS EXCEL ===
set SRC=..\Excel\dev\Ratio_Restauration_dev.xlsm
set DST_DIR=..\Excel\prod
REM Dossier commun de sauvegardes (Cuisine + Restauration)
set BACKUP_DIR=..\Excel\backup
if not exist "%BACKUP_DIR%" (
mkdir "%BACKUP_DIR%"
)
REM Vérifications
if not exist "%SRC%" (
echo ERREUR : fichier source introuvable :
@@ -42,7 +49,7 @@ if not exist "%DST_DIR%" (
REM === 3) GÉNÉRATION DE LA DATE AU FORMAT AAAAMMJJ ===
for /f %%a in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMdd"') do set TODAY=%%a
set BACKUP=%DST_DIR%\Ratio_Restauration_%TODAY%.xlsm
set BACKUP=%BACKUP_DIR%\Ratio_Restauration_%TODAY%.xlsm
REM === 4) COPIE VERS PROD ===
echo Copie vers la version de production...
@@ -55,3 +62,4 @@ copy /Y "%SRC%" "%BACKUP%"
echo --- Mise en prod terminee ---
endlocal
exit /b 0