Create windows shortcut script

This commit is contained in:
Brenden Harrell committed 2021-04-24 10:42:28 -05:00
1 parent afa1b8e1af
commit ea1ff46c20
4 files changed
+12

No files matched your search

+1
View File
@@ -7,5 +7,6 @@ debug.log
Projects/Superalgos/Icons/Thumbs.db
*.bat
!launch-windows.bat
!create-shortcut-windows.bat
*.exe
+9
View File
@@ -0,0 +1,9 @@
set TARGET='%CD%\launch-windows.bat'
set SHORTCUT='%USERPROFILE%\Desktop\Superalgos.lnk'
set ICON='%CD%\superalgos.ico'
set PWS=powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile
%PWS% -Command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut(%SHORTCUT%); $S.TargetPath = %Target%; $S.IconLocation = %ICON%; $S.Save()"
#Keep terminal open for debug
#cmd /k echo "keep open"
@@ -1 +1,3 @@
cd %~dp0
cd ..
cmd /k "node run"
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB