Finished Windows Shortcut Scripts
This commit is contained in:
1 parent
f819213e29
commit
3b2e2c0e3b
3 files changed
+11
-2
No files matched your search
@@ -8,5 +8,6 @@ Projects/Superalgos/Icons/Thumbs.db
|
||||
*.bat
|
||||
!launch-windows.bat
|
||||
!create-shortcut-windows.bat
|
||||
!uninstall-shortcut-windows.bat
|
||||
*.exe
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
set TARGET='%CD%\launch-windows.bat'
|
||||
set SHORTCUT='%USERPROFILE%\Desktop\Superalgos.lnk'
|
||||
set STARTMENU='%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\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"
|
||||
%PWS% -Command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut(%STARTMENU%); $S.TargetPath = %Target%; $S.IconLocation = %ICON%; $S.Save()"
|
||||
|
||||
REM Keep terminal open for debug
|
||||
cmd /k echo "keep open"
|
||||
@@ -0,0 +1,5 @@
|
||||
del "%USERPROFILE%\Desktop\Superalgos.lnk"
|
||||
del "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Superalgos.lnk"
|
||||
|
||||
REM Keep terminal open for debug
|
||||
cmd /k echo "keep open"
|
||||
Reference in new issue
Block a user