Driver: Scripts: Improve paths handling

This commit is contained in:
Nodir Temirkhodjaev 2024-01-09 20:23:02 +03:00
parent 7fd7d0295e
commit b55e1fd67b
2 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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"