@echo off setlocal :: Crear el directorio si no existe if not exist "C:\shared" ( mkdir "C:\shared" ) :: Descargar la imagen powershell -Command "Invoke-WebRequest -Uri 'https://cdn.apps.lci.ulsa.mx/centro-experiencia/img0.jpg' -OutFile 'C:\shared\img0.jpg'" echo Imagen descargada a C:\shared\img0.jpg pause