From ea43ad9b6a4870567cba4613ee9470001b7a1a3f Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Fri, 17 Feb 2023 14:42:37 +0100 Subject: [PATCH] bugfix --- 07_MakeISOfromStick.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/07_MakeISOfromStick.cmd b/07_MakeISOfromStick.cmd index 1a02026..389798e 100644 --- a/07_MakeISOfromStick.cmd +++ b/07_MakeISOfromStick.cmd @@ -1,7 +1,7 @@ @echo off set OSCDPATH="%ProgramFiles(x86)%\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg" set OSLABEL=WIN10-AUTO -set ISOFILE=c:\temp\%OSLABEL%.iso +set ISOFILE=%SystemDrive%\temp\%OSLABEL%.iso IF %1.==. GOTO USAGE @@ -12,7 +12,7 @@ echo. set USBDRIVE=%1 -if /I %USBDRIVE% == C: ( +if /I %USBDRIVE% == %SystemDrive% ( echo ERROR: cannot use drive %USBDRIVE% ! exit /b )