From b55e1fd67bfa799a5a0882f71456e7ff5b8cb678 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Tue, 9 Jan 2024 20:23:02 +0300 Subject: [PATCH] Driver: Scripts: Improve paths handling --- src/driver/scripts/execute-cmd.bat | 4 ++-- src/driver/scripts/reinstall.bat | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/driver/scripts/execute-cmd.bat b/src/driver/scripts/execute-cmd.bat index c29c12a4..8cb9dd17 100644 --- a/src/driver/scripts/execute-cmd.bat +++ b/src/driver/scripts/execute-cmd.bat @@ -1,6 +1,6 @@ @rem Execute the command -@cd %~dp0 +@cd "%~dp0" @echo off set "SystemPath=%SystemRoot%\System32" @@ -8,4 +8,4 @@ if defined PROGRAMFILES(X86) ( if exist %SystemRoot%\Sysnative\* set "SystemPath=%SystemRoot%\Sysnative" ) -start "" /MIN /W %SystemPath%\cmd.exe /C %1 +start "" /MIN /W %SystemPath%\cmd.exe /C "%~dp0%1" diff --git a/src/driver/scripts/reinstall.bat b/src/driver/scripts/reinstall.bat index 6035f969..49048a96 100644 --- a/src/driver/scripts/reinstall.bat +++ b/src/driver/scripts/reinstall.bat @@ -1,8 +1,8 @@ @rem Re-install driver -@cd %~dp0 +@cd "%~dp0" @echo off -%COMSPEC% /C uninstall.bat +%COMSPEC% /C "%~dp0uninstall.bat" -install.bat +"%~dp0install.bat"