From 19a96278b4fef0613f09ad9fbaa2d82ef85a085b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 May 2023 01:44:26 +0200 Subject: [PATCH] split shortcut creation into multiple lines --- windows11.bat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/windows11.bat b/windows11.bat index 476637f..fae21d8 100644 --- a/windows11.bat +++ b/windows11.bat @@ -171,7 +171,11 @@ PowerShell -Command "Invoke-WebRequest -Uri https://opentabletdriver.net/Release :: Extract PowerShell -Command "Expand-Archive -Path '%TEMP%\OpenTabletDriver.win-x64.zip' -DestinationPath '%ProgramFiles%\OpenTabletDriver'" :: Create shortcut -PowerShell -Command "& { $WshShell = New-Object -comObject WScript.Shell; $Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\OpenTabletDriver.lnk'); $Shortcut.TargetPath = '%ProgramFiles%\OpenTabletDriver\OpenTabletDriver.UX.Wpf.exe'; $Shortcut.WorkingDirectory = '%ProgramFiles%\OpenTabletDriver'; $Shortcut.Save() }" +PowerShell -Command "$WshShell = New-Object -comObject WScript.Shell;" ^ + "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\OpenTabletDriver.lnk');" ^ + "$Shortcut.TargetPath = '%ProgramFiles%\OpenTabletDriver\OpenTabletDriver.UX.Wpf.exe';" ^ + "$Shortcut.WorkingDirectory = '%ProgramFiles%\OpenTabletDriver';" ^ + "$Shortcut.Save()" :: WindowsInk PowerShell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/vmulti-bin/releases/download/v1.0/Driver.zip -OutFile '%TEMP%\Driver-VMulti.zip'"