added date to ISO file and to disk label
This commit is contained in:
parent
eb92b54f8e
commit
9a5ea41763
@ -2,6 +2,11 @@
|
|||||||
set T=c:\TEMP
|
set T=c:\TEMP
|
||||||
set DPARTSCRIPT=%T%\diskpart.txt
|
set DPARTSCRIPT=%T%\diskpart.txt
|
||||||
|
|
||||||
|
rem set name for media ...
|
||||||
|
for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"
|
||||||
|
set "YY=%dt:~2,2%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%"
|
||||||
|
set OSLABEL=W10-%YY%%MM%%DD%
|
||||||
|
|
||||||
rem create temp directory ...
|
rem create temp directory ...
|
||||||
mkdir %T% 1>nul 2>nul
|
mkdir %T% 1>nul 2>nul
|
||||||
|
|
||||||
@ -88,7 +93,7 @@ set SIZE=32768
|
|||||||
:CONT3
|
:CONT3
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
set LABEL=W10install
|
set LABEL=%OSLABEL%
|
||||||
set /p LABEL="Please enter a label for the new disk [%LABEL%] : "
|
set /p LABEL="Please enter a label for the new disk [%LABEL%] : "
|
||||||
|
|
||||||
echo WARNING ! This will DELETE ALL data on disk number [%DISK%]
|
echo WARNING ! This will DELETE ALL data on disk number [%DISK%]
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
rem set name for media ...
|
||||||
|
for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"
|
||||||
|
set "YY=%dt:~2,2%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%"
|
||||||
|
set OSLABEL=W10-%YY%%MM%%DD%
|
||||||
|
|
||||||
set OSCDPATH="%ProgramFiles(x86)%\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg"
|
set OSCDPATH="%ProgramFiles(x86)%\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg"
|
||||||
set OSLABEL=WIN10-AUTO
|
|
||||||
set ISOFILE=%SystemDrive%\temp\%OSLABEL%.iso
|
set ISOFILE=%SystemDrive%\temp\%OSLABEL%.iso
|
||||||
|
|
||||||
IF %1.==. GOTO USAGE
|
IF %1.==. GOTO USAGE
|
||||||
|
Loading…
Reference in New Issue
Block a user