Skip to content

Commit 6378ee3

Browse files
authored
Fix for dirs containing spaces Install.bat
1 parent 07a1139 commit 6378ee3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Install.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
setlocal
33

44
REM Get the path to the current script's directory
5-
set scriptDir=%~dp0
5+
set "scriptDir=%~dp0"
66

77
REM Define the path to the PowerShell script
8-
set psScript=%scriptDir%create-shortcut.ps1
8+
set "psScript=%scriptDir%create-shortcut.ps1"
99

1010
REM Check for administrative privileges
1111
openfiles >nul 2>nul
1212
if %errorlevel% neq 0 (
1313
echo Requesting administrative privileges...
14-
powershell.exe -Command "Start-Process cmd -ArgumentList '/c ""%~f0""' -Verb RunAs"
14+
powershell.exe -Command "Start-Process cmd -ArgumentList '/c """"%~f0"""""' -Verb RunAs"
1515
exit /b
1616
)
1717

0 commit comments

Comments
 (0)