I'm trying to automate some DISM
processes.
After booting winpe
from USB, some times the drive letters changes, so I need to build a batch file that displays the different volumes so the user can select the drive letter for the DISM
capture-image command.
I have no experience in .bat programming, so this is what I have and does not work, but I'm posting the code so you can give me better advice.
name of the file: Golden.bat
diskpart *After this command the program breaks*
list vol
exit
@echo off *This part also does not work gives error 3*
set /p Drive=Escribe la letra del Drive destino para la Imagen Golden:
if "%Drive%"=="" goto :FIN
Dism /Capture-Image /ImageFile:"%Drive%"":\Golden\Golden.wim" /CaptureDir:C:\ /Name:Golden
:FIN
@echo on
echo Fin del Proceso de Captura de Imagen Golden!