I am in the process of building an image to USB image our dell computers.
So far: I have it working by running a batch file that will clean disk 0 (the default C: drive) and set it to C, then assigning my flash drive to letter Z, then using imagex to apply the image from Z to C.
It works great! However I want to customize it a little deeper. I want it to come up and prompt the user to ask if they are sure they want to do this, which it currently does. But After they say type Y, I want the process to be more silent, but still show some sort of a progress bar? If that makes sense.
Does anyone know how to add this to the batch file, here is what I currently have:
@echo off
setlocal
: PROMPT
SET /P AREYOUSURE=This script will erase and reformat the C drive, are you sure you want to do this? (Y/[N])?
IF /I "%AREYOUSURE%" NEQ "Y" GOTO END
##I want this all to be silent with a progress bar at this point##
Diskpart /s diskscript.txt
z:
cd imagex
z:\imagex\imagex.exe /apply z:\imagex\Deploy.wim 1 c:
end
exit
Thank you in advance!
So far: I have it working by running a batch file that will clean disk 0 (the default C: drive) and set it to C, then assigning my flash drive to letter Z, then using imagex to apply the image from Z to C.
It works great! However I want to customize it a little deeper. I want it to come up and prompt the user to ask if they are sure they want to do this, which it currently does. But After they say type Y, I want the process to be more silent, but still show some sort of a progress bar? If that makes sense.
Does anyone know how to add this to the batch file, here is what I currently have:
@echo off
setlocal
: PROMPT
SET /P AREYOUSURE=This script will erase and reformat the C drive, are you sure you want to do this? (Y/[N])?
IF /I "%AREYOUSURE%" NEQ "Y" GOTO END
##I want this all to be silent with a progress bar at this point##
Diskpart /s diskscript.txt
z:
cd imagex
z:\imagex\imagex.exe /apply z:\imagex\Deploy.wim 1 c:
end
exit
Thank you in advance!