Ejectuar políticas

This commit is contained in:
2025-05-27 22:14:46 +00:00
parent 01bfd39d5d
commit 9726007ffd

View File

@@ -15,6 +15,26 @@ echo ================================
echo 🚀 Ejecutando scripts en carpeta "Políticas" echo 🚀 Ejecutando scripts en carpeta "Políticas"
echo ================================ 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" set "CARPETA=Políticas"
if not exist "%CARPETA%" ( if not exist "%CARPETA%" (
@@ -23,7 +43,6 @@ if not exist "%CARPETA%" (
exit /b exit /b
) )
:: Itera y ejecuta todos los .cmd y .bat en la carpeta
for %%F in ("%CARPETA%\*.cmd" "%CARPETA%\*.bat") do ( for %%F in ("%CARPETA%\*.cmd" "%CARPETA%\*.bat") do (
echo ---------------------------------------- echo ----------------------------------------
echo ▶ Ejecutando: %%~nxF echo ▶ Ejecutando: %%~nxF