We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07a1139 commit 6378ee3Copy full SHA for 6378ee3
Install.bat
@@ -2,16 +2,16 @@
2
setlocal
3
4
REM Get the path to the current script's directory
5
-set scriptDir=%~dp0
+set "scriptDir=%~dp0"
6
7
REM Define the path to the PowerShell script
8
-set psScript=%scriptDir%create-shortcut.ps1
+set "psScript=%scriptDir%create-shortcut.ps1"
9
10
REM Check for administrative privileges
11
openfiles >nul 2>nul
12
if %errorlevel% neq 0 (
13
echo Requesting administrative privileges...
14
- powershell.exe -Command "Start-Process cmd -ArgumentList '/c ""%~f0""' -Verb RunAs"
+ powershell.exe -Command "Start-Process cmd -ArgumentList '/c """"%~f0"""""' -Verb RunAs"
15
exit /b
16
)
17
0 commit comments