From 0a2cecf6b9844d1507aa824af40dec4261fc0919 Mon Sep 17 00:00:00 2001 From: Xyueta Date: Tue, 19 Sep 2023 00:05:10 +0200 Subject: [PATCH] fix: invalid command --- src/playbook/Executables/FINALIZE.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playbook/Executables/FINALIZE.cmd b/src/playbook/Executables/FINALIZE.cmd index b7b6775b08..6c9db491ef 100644 --- a/src/playbook/Executables/FINALIZE.cmd +++ b/src/playbook/Executables/FINALIZE.cmd @@ -191,7 +191,7 @@ for /f "usebackq tokens=2 delims=\" %%a in (`reg query HKU ^| findstr /r /x /c:" ) :: Detect hard drive - Solid State Drive (SSD) or Hard Disk Drive (HDD) -for /f %%a in ('PowerShell -NoP -C "(Get-PhysicalDisk -SerialNumber (Get-Disk -Number (Get-Partition -DriveLetter C:.Substring(0, 1)).DiskNumber).SerialNumber.TrimStart()).MediaType"') do ( +for /f %%a in ('PowerShell -NoP -C "(Get-PhysicalDisk -SerialNumber (Get-Disk -Number (Get-Partition -DriveLetter $env:SystemDrive.Substring(0, 1)).DiskNumber).SerialNumber.TrimStart()).MediaType"') do ( set "diskDrive=%%a" )