From 9726007ffdffbe466c30885385b8c83ac79a11d6 Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Tue, 27 May 2025 22:14:46 +0000 Subject: [PATCH] =?UTF-8?q?Ejectuar=20pol=C3=ADticas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ejecutar_politicas.cmd | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/ejecutar_politicas.cmd b/ejecutar_politicas.cmd index a3dc00d..1bde863 100644 --- a/ejecutar_politicas.cmd +++ b/ejecutar_politicas.cmd @@ -15,6 +15,26 @@ echo ================================ echo 🚀 Ejecutando scripts en carpeta "Políticas" echo ================================ +:: ============================ +:: Copiar imagen institucional a C:\Shared +:: ============================ +set "ORIGEN_IMG=img0.jpg" +set "DESTINO_IMG=C:\Shared\img0.jpg" + +if exist "%ORIGEN_IMG%" ( + echo 🖼️ Copiando imagen institucional a %DESTINO_IMG%... + if not exist "C:\Shared" ( + mkdir "C:\Shared" + ) + copy /Y "%ORIGEN_IMG%" "%DESTINO_IMG%" >nul + echo ✅ Imagen copiada correctamente. +) else ( + echo ⚠️ No se encontró "%ORIGEN_IMG%". Verifica que esté en la misma carpeta que este script. +) + +:: ============================ +:: Ejecutar scripts .cmd y .bat en /Políticas +:: ============================ set "CARPETA=Políticas" if not exist "%CARPETA%" ( @@ -23,7 +43,6 @@ if not exist "%CARPETA%" ( exit /b ) -:: Itera y ejecuta todos los .cmd y .bat en la carpeta for %%F in ("%CARPETA%\*.cmd" "%CARPETA%\*.bat") do ( echo ---------------------------------------- echo ▶ Ejecutando: %%~nxF