Création des édits
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user