Ejectuar políticas
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user